error 017: undefined symbol "str"
#1

Код:
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(playeridred"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(strsizeof(str), "%s is now back from {FF0000} AFK"Bname);
  
SendClientMessageToAll(green,str);
  
AFK[playerid]=0;
  
TextDrawHideForPlayer(playeridTextdraw3);
  
TextDrawHideForPlayer(playeridTextdraw4);
  
TextDrawHideForPlayer(playeridTextdraw5);
  
format(strsizeof(str),"Welcome Back To Euro Truck Simulator!");
  
SendClientMessage(playeridorangestr);
  
AFKcount--;
  }
  
format(strsizeof(str), "[INFO]: %s has used /back",GetPName(playerid));
  
SendAdminMessage(green2,str);
  return 
1;

Reply


Messages In This Thread
error 017: undefined symbol "str" - by Team_PRO - 06.09.2014, 23:47
Re: error 017: undefined symbol "str" - by rymax99 - 07.09.2014, 00:12
Re: error 017: undefined symbol "str" - by Team_PRO - 07.09.2014, 00:33
Re: error 017: undefined symbol "str" - by Team_PRO - 07.09.2014, 03:11
Re: error 017: undefined symbol "str" - by Flake. - 07.09.2014, 03:17

Forum Jump:


Users browsing this thread: 1 Guest(s)