SA-MP Forums Archive
i need help fixing some compile errors!! - 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: i need help fixing some compile errors!! (/showthread.php?tid=272746)



i need help fixing some compile errors!! - ahmed2793 - 29.07.2011

im trying to add this:
Код HTML:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
	SetPlayerSkin(playerid,287*);
	GivePlayerWeapon(playerid,31**,99999);
    return 1;
}
i got those errors in these lines!!!!
Код HTML:
C:\Documents and Settings\Administrateur\Mes documents\Downloads\[0.3c R2] SATDM~RP V9_FINAL\[0.3c R2]SATDM~RP V9_FINAL\Gamemodes\SATDM_v9.pwn(26295) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Mes documents\Downloads\[0.3c R2] SATDM~RP V9_FINAL\[0.3c R2]SATDM~RP V9_FINAL\Gamemodes\SATDM_v9.pwn(26295) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Administrateur\Mes documents\Downloads\[0.3c R2] SATDM~RP V9_FINAL\[0.3c R2]SATDM~RP V9_FINAL\Gamemodes\SATDM_v9.pwn(26296) : error 029: invalid expression, assumed zero



Re: i need help fixing some compile errors!! - WoodPecker - 29.07.2011

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
    SetPlayerSkin(playerid,287);
    GivePlayerWeapon(playerid,31,99999);
    }
    return 1;
}



Re: i need help fixing some compile errors!! - Shockey HD - 29.07.2011

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
    SetPlayerSkin(playerid,287);
    GivePlayerWeapon(playerid,31,99999);
    return 1;
}
Ahh he beat me