HyperGaming Network

Other Forums => Scrapyard => Topic started by: SaltyPopcorn on 17-06-2008

Title: Pawno error
Post by: SaltyPopcorn on 17-06-2008
Oke here is the error hope somebody can fix it for me.


C:\Documents and Settings\Giesje\Mijn documenten\Test.pwn(131) : warning 209: function "OnPlayerSpawn" should return a value

This is the script


public OnPlayerSpawn(playerid)
{
    if(GetPlayerSkin(playerid) == 110 || GetPlayerSkin(playerid) == 108 || GetPlayerSkin(playerid) == 109){

    SetPlayerColor(playerid,COLOR_YELLOW);}
   
      else if(GetPlayerSkin(playerid) == 121 || GetPlayerSkin(playerid) == 122 || GetPlayerSkin(playerid) == 123){
      SetPlayerColor(playerid,COLOR_CYAN);}

      else if(GetPlayerSkin(playerid) == 287 ||
      
      SetPlayerColor(playerid,COLOR_GREEN)

)     return 1;
}
Title: Re: Pawno error
Post by: InTOx on 17-06-2008
u have got an extra ) if you look carefully and there needs to be a ; after SetPlayerColor(playerid,COLOR_GREEN)
Title: Re: Pawno error
Post by: SaltyPopcorn on 18-06-2008
Cant seem to fix this problem please you do it for me my msn it at desert and i reply'd there too you should read it
Title: Re: Pawno error
Post by: Creeding on 09-02-2009
Desert-Dm?
Title: Re: Pawno error
Post by: Silver Knight on 12-02-2009
Don't revive old posts..