Minigames.pwn(932) : warning 217: loose indentation Minigames.pwn(932) : error 029: invalid expression, assumed zero Minigames.pwn(932) : error 017: undefined symbol "cmd_derby" Minigames.pwn(932) : error 029: invalid expression, assumed zero Minigames.pwn(932) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
CMD:derby(playerid, params[])
{
if(derbyplaying == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, "The derby is already started");
return 1;
}
if(playerinminigame[playerid] == 1)
{
SendClientMessage(playerid, 0xB4B5B7AA, "You are already in a minigame");
return 1;
}
if(derbyon == 1 && derbyrank < 15)
{
playerinminigame[playerid] = 1;
playerinderby[playerid] = 1;
derbyrank++;
SetPlayerInterior(playerid,15);
for(new i=0; i<15; i++)
{
if(bloodringfull[i] == 0)
{
SetPlayerVirtualWorld(playerid,7);
SetVehicleVirtualWorld(bloodring[i],7);
bloodringfull[i] = 1;
PutPlayerInVehicle(playerid, bloodring[i], 0);
TogglePlayerControllable(playerid, 0);
playerinbloodring[playerid] = i;
format(string, sizeof(string), "%s has joined the derby", pname);//
SendClientMessageToAll(0x33AA33AA,string);
return 1;
}
}
}
else if(derbyon == 1 && derbyrank >= 15)
{
format(string, sizeof(string), "The derby is full, wait for the next round", pname);//
SendClientMessage(playerid,0x33AA33AA,string);
return 1;
}
}