16.02.2011, 19:41
So a piece of my code is this:
When I perform the code trough playercommandtext it says unknown command. But when I delete
It'll work fine for the rest. What is going wrong :S?
pawn Code:
stock RaceAccept(playerid){
if(PlayerInvite[playerid] == -1){
SendClientMessage(playerid, COLOR_WHITE, "You weren't invited to any races.");
return 1;
}
new i;
for(i = 1; i < MAX_CHECKPOINTS * 3 + 1; i++){
CreatedRace[playerid][i] = CreatedRace[PlayerInvite[playerid]][i];
}
return 1;
}
pawn Code:
new i;
for(i = 1; i < MAX_CHECKPOINTS * 3 + 1; i++){
CreatedRace[playerid][i] = CreatedRace[PlayerInvite[playerid]][i];
}