Loader

Pawno error

Started by SaltyPopcorn, 17-06-2008

0 Members and 113 Guests are viewing this topic.

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;
}
Desert-Dm SA:MP Staff

The server is not up yet more information click
click on the link.

topic=16.0 here]http://thegtaplanet.net/hgn/board/index.php?=http://topic=16.0 here]topic=16.0 here

u have got an extra ) if you look carefully and there needs to be a ; after SetPlayerColor(playerid,COLOR_GREEN)

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
Desert-Dm SA:MP Staff

The server is not up yet more information click
click on the link.

topic=16.0 here]http://thegtaplanet.net/hgn/board/index.php?=http://topic=16.0 here]topic=16.0 here

Desert-Dm?
This message may or may not be endorsed by Creeding and he is by no means held to any comments, posts or any of the like made... Oh, and no. I dont like fancy pancy signatures.

Don't revive old posts..

Quotebreslau: if i cant cheat i dont wanna play
breslau: period