29.06.2014, 08:45
Sup guys,
I got a problem,
If I compile my gamemode it shows up this error:
Here's the part where the error is:
Here's where the Deleteallflare function is defined:
I still don't got a scripter for my RP server, so I do it by myself, but as this doesn't work, I asked for help
Greets,
Bradleyornot
I got a problem,
If I compile my gamemode it shows up this error:
Код:
C:\Users\Gebruiker\Documents\GTA San Andreas\samp servers\Fast Hustler Roleplay V4.0\gamemodes\EXRPR48.pwn(31735) : error 001: expected token: ";", but found "return"
Код:
CMD:destroyallflares(playerid, params[]) { if(!IsACop(playerid)) { return SendClientMessage(playerid,COLOR_GREY," You cannot use this command !"); } if(IsACop(playerid)) { if(PlayerInfo[playerid][pRank] < 6) { return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing flares !"); } } else { if(PlayerInfo[playerid][pRank] < 5) { return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing flares !"); } } DeleteAllFlare() return 1; //THIS LINE }
Код:
stock DeleteAllFlare() { for(new i = 0; i < sizeof(FlareInfo); i++) { if(FlareInfo[i][fCreated] == 1) { FlareInfo[i][fCreated]=0; FlareInfo[i][fX]=0.0; FlareInfo[i][fY]=0.0; FlareInfo[i][fZ]=0.0; DestroyObject(FlareInfo[i][fObject]); } } return 0; }
Greets,
Bradleyornot