Problem in Score Capping
#8

public OnPlayerRequestSpawn( playerid )
{
if( pClass[ playerid ] == 6 )
{
if( GetPlayerScore( playerid ) < 500 )
{
SendClientMessage( playerid, 0xFFFFFFFF, "You have to have at least 500 score to be a police officer!" );
return 0;
}
}
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
pClass[ playerid ] = classid;
return 1;
}
SetupPlayerForClassSelection(playerid);

if(classid == 0) {

and i've got new pClass[ MAX_PLAYERS ]; where i've got all my other 'new's.

error 021: symbol already defined: "SetupPlayerForClassSelection"
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(473) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(475) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(477) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(479) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(481) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(483) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(485) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(487) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(489) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(492) : error 010: invalid function or declaration
C:\Users\Nicholas\Desktop\TruckersUnited\gamemodes \TruckersUnited.pwn(727) : warning 203: symbol is never used: "SetupPlayerForClassSelection"

Lines 473 to 492

473 if(classid == 0) {
GameTextForPlayer(playerid,"~b~TRUCKER",1000,5);
} else if(classid == 1) {
GameTextForPlayer(playerid,"~b~TRUCKER",1000,5);
} else if(classid == 2) {
GameTextForPlayer(playerid,"~b~TRUCKER",1000,5);
} else if(classid == 3) {
GameTextForPlayer(playerid,"~b~TRUCKER",1000,5);
} else if(classid == 4) {
GameTextForPlayer(playerid,"~b~TRUCKER",1000,5);
} else if(classid == 5) {
GameTextForPlayer(playerid,"~b~TRUCKER",1000,5);
} else if(classid == 7 ) {
GameTextForPlayer(playerid,"~r~TRUCKER PP",1000,5);
} else if(classid == {
GameTextForPlayer(playerid,"~r~TRUCKER",1000,5);
} else if(classid == 9) {
GameTextForPlayer(playerid,"~r~LV PILOT",1000,5);
}
492 return 1;
Reply


Messages In This Thread
Problem in Score Capping - by X35B - 22.12.2010, 05:02
Re: Problem in Score Capping - by Sledge - 22.12.2010, 05:07
Re: Problem in Score Capping - by Grim_ - 22.12.2010, 05:09
Re: Problem in Score Capping - by Sledge - 22.12.2010, 05:12
Re: Problem in Score Capping - by X35B - 22.12.2010, 05:14
Re: Problem in Score Capping - by X35B - 22.12.2010, 05:16
Re: Problem in Score Capping - by Grim_ - 22.12.2010, 05:20
Re: Problem in Score Capping - by X35B - 22.12.2010, 05:37
Re: Problem in Score Capping - by Grim_ - 22.12.2010, 05:43

Forum Jump:


Users browsing this thread: 1 Guest(s)