Error 29
#1

I have been trying to fix this for at least 20 minutes, I haven't found any useful topics about it either...


Quote:

: warning 235: public function lacks forward declaration (symbol "OnPlayerModeInit")
: error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.


Code:
Quote:

public OnPlayerModeInit()
{
SetGameModeText(GameMode);
return;
}


public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid, 0, 121, Spawn_X, Spawn_Y, Spawn_Z, 0, -1, ,-1 ,-1 ,-1 ,-1 ,-1);ERROR 29 ON THIS LINE
GivePlayerMoney(playerid, 100);
SpawnPlayer(playerid);
return 1;
}

Reply
#2

OnGameModeInit
Reply
#3

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
OnGameModeInit
Thanks, how do I fix the error now?
Reply
#4

You had a double comma.

Yours:
Quote:

SetSpawnInfo(playerid, 0, 121, Spawn_X, Spawn_Y, Spawn_Z, 0, -1, ,-1 ,-1 ,-1 ,-1 ,-1);

Fixed:
Quote:

SetSpawnInfo(playerid, 0, 121, Spawn_X, Spawn_Y, Spawn_Z, 0, -1,-1 ,-1 ,-1 ,-1 ,-1);

Reply
#5

+REP for you guys, thanks for the quick replies!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)