06.09.2014, 23:47
Код:
C:\Users\Matt\Desktop\SA-MP Files\ETS\gamemodes\ets.pwn(6587) : error 017: undefined symbol "str" C:\Users\Matt\Desktop\SA-MP Files\ETS\gamemodes\ets.pwn(6587) : error 017: undefined symbol "str" C:\Users\Matt\Desktop\SA-MP Files\ETS\gamemodes\ets.pwn(6587) : error 029: invalid expression, assumed zero C:\Users\Matt\Desktop\SA-MP Files\ETS\gamemodes\ets.pwn(6587) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PHP код:
CMD:back(playerid,params[])
{
if(AFK[playerid] == 0)
{
SendClientMessage(playerid, red, "You are not in AFK to use this command.");
}
else
{
SpawnPlayer(playerid);
new str[192];
new Bname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Bname,sizeof(Bname));
SetPlayerPos(playerid,xpos,ypos,zpos);
SetPlayerInterior(playerid,ainterior);
SetPlayerHealth(playerid,hp[playerid]);
SetPlayerArmour(playerid,armour[playerid]);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
Delete3DTextLabel(tAFK[playerid]);
format(str, sizeof(str), "%s is now back from {FF0000} AFK", Bname);
SendClientMessageToAll(green,str);
AFK[playerid]=0;
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
format(str, sizeof(str),"Welcome Back To Euro Truck Simulator!");
SendClientMessage(playerid, orange, str);
AFKcount--;
}
format(str, sizeof(str), "[INFO]: %s has used /back",GetPName(playerid));
SendAdminMessage(green2,str);
return 1;
}