SA-MP Forums Archive
Help me with errors! Please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me with errors! Please (/showthread.php?tid=163530)



Help me with errors! Please - FireCat - 27.07.2010

Код:
new PlayerName[24];
public OnPlayerStateChange(playerid, newstate, oldstate)

  GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  
  if(!strcmp(PlayerName,"firecat",true)==1)
     {
      RemovePlayerFromVehicle(playerid);
      SendClientMessage(playerid, COLOR_RED, "This car is from FIRECAT");
      }
      return 1;
}
C:\Users\james\Desktop\stunt server - Copy\filterscripts\Carjump.pwn(14) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\filterscripts\Carjump.pwn(24) : error 010: invalid function or declaration
C:\Users\james\Desktop\stunt server - Copy\filterscripts\Carjump.pwn(29) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


What should i do



[GDZ]leader



Re: Help me with errors! Please - Shadow™ - 27.07.2010

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    if(strcmp(PlayerName,"firecat",true) != 1)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, COLOR_RED, "This car is from FIRECAT");
    }
    return 1;
}



Re: Help me with errors! Please - Guest3598475934857938411 - 31.07.2010

Use the search ! Plz I beg to use it!