Posts: 554
Threads: 49
Joined: Feb 2007
Whats wring with this script

In server i have only one team/skin - SKIN ID 0, CJ and i cant select it
http://tuned.oo.lv/servsamp/gamemodes/sftdm.pwn
Posts: 137
Threads: 1
Joined: Nov 2007
Reputation:
0
try changing SetWorldTime(04); to SetWorldTime(4);
Posts: 554
Threads: 49
Joined: Feb 2007
u dont understand!
here is screenshot
here is code:
http://tuned.oo.lv/servsamp/gamemodes/sftdm.pwn
Posts: 554
Threads: 49
Joined: Feb 2007
And what is this?
Quote:
C:\AppServ\www\servsamp\gamemodes\sftdm.pwn(1129) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
C:\AppServ\www\servsamp\gamemodes\sftdm.pwn(1245) : warning 235: public function lacks forward declaration (symbol "GameModeExitFunc")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
|
Posts: 554
Threads: 49
Joined: Feb 2007
Still bug...
I think, problem is here:
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerClass(playerid, classid);
SetupPlayerForClassSelection(playerid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, "~g~Street racer", 500, 3);
}
case 1:
{
GameTextForPlayer(playerid, "~g~Biker", 500, 3);
}
case 2:
{
GameTextForPlayer(playerid, "~g~Wang Band", 500, 3);
}
case 3:
{
GameTextForPlayer(playerid, "~g~FBI", 500, 3);
}
case 4:
{
GameTextForPlayer(playerid, "~g~Mafia", 500, 3);
}
case 5:
{
GameTextForPlayer(playerid, "~g~Girl", 500, 3);
}
}
}
//------------------------------------------------------------------------------
But what? It starts, when i remove "return 1", but when is it, pawn show lots of errors!