• 0
Tim Wiens

undefined symbol "PI"

Question

помогите исправиить 

 error 017: undefined symbol "PI"
 warning 215: expression has no effect
 error 001: expected token: ";", but found "]"
 error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

код

}

Спойлер

CMD:gg(playerid, params[]) {
    if(PI[playerid][pAdmin] < 1 || dostup[playerid] == 0) return true;
    new giveplayerid;
    if(sscanf(params, "d",giveplayerid)) return SendEsp(playerid,"/gg [id]");
    if(!IsPlayerConnected(giveplayerid)) return ErrorMessage(playerid,not_id);
    new string[128];
    format(string,sizeof(string),"Ответ от %s[%i]: Приятной Вам игры на сервере",player_name[playerid],playerid);
    SendClientMessage(giveplayerid, 0xffa141FF, string);
    format(string, sizeof(string), ""W"%s[%i] {FFa500}К "W"%s[%i]: {FFa500}Приятной Вам игры на сервере",player_name[playerid],playerid,player_name[giveplayerid],giveplayerid);
    SendAdminMessage(0xFfa500AA, string);
    PlayerPlaySound(giveplayerid, 4203, 0.0, 0.0, 0.0);
    return true;
}

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
1 час назад, Tim Wiens сказал:

помогите исправиить 

 error 017: undefined symbol "PI"
 warning 215: expression has no effect
 error 001: expected token: ";", but found "]"
 error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

код

}

  Код\ (открыть спойлер)


CMD:gg(playerid, params[]) {
    if(PI[playerid][pAdmin] < 1 || dostup[playerid] == 0) return true;
    new giveplayerid;
    if(sscanf(params, "d",giveplayerid)) return SendEsp(playerid,"/gg [id]");
    if(!IsPlayerConnected(giveplayerid)) return ErrorMessage(playerid,not_id);
    new string[128];
    format(string,sizeof(string),"Ответ от %s[%i]: Приятной Вам игры на сервере",player_name[playerid],playerid);
    SendClientMessage(giveplayerid, 0xffa141FF, string);
    format(string, sizeof(string), ""W"%s[%i] {FFa500}К "W"%s[%i]: {FFa500}Приятной Вам игры на сервере",player_name[playerid],playerid,player_name[giveplayerid],giveplayerid);
    SendAdminMessage(0xFfa500AA, string);
    PlayerPlaySound(giveplayerid, 4203, 0.0, 0.0, 0.0);
    return true;
}

 

 


Вместо PI может быть что угодно, PlayerInfo, p_info, и т.д

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.