PDA

View Full Version : need some help please


Crossfire1989
08/08/2012, 01:22 AM
command(siren, playerid, params[])
{
if(IsACop(playerid) || PlayerStatistics[playerid][pMember] == 8 || PlayerStatistics[playerid][pLeader] == 8);--line 12504
{
if(GetPVarType(playerid, "Siren"))
{
if(IsPlayerAttachedObjectSlotUsed(playerid, MAX_PLAYER_ATTACHED_OBJECTS - 2)) RemovePlayerAttachedObject(playerid, MAX_PLAYER_ATTACHED_OBJECTS - 2);
if(IsPlayerAttachedObjectSlotUsed(playerid, MAX_PLAYER_ATTACHED_OBJECTS - 1)) RemovePlayerAttachedObject(playerid, MAX_PLAYER_ATTACHED_OBJECTS - 1);
DeletePVar(playerid, "Siren");
SendClientMessageEx(playerid, COLOR_WHITE, "Siren disabled.");
return 1;
}


that is the code for the script however on line 12504 if(IsACop(playerid) || PlayerStatistics[playerid][pMember] == 8 || PlayerStatistics[playerid][pLeader] == 8); i get these errors
C:\Users\Gharrett\Desktop\vortex\gamemodes\VortexR oleplay.pwn(12504) : error 012: invalid function call, not a valid address
C:\Users\Gharrett\Desktop\vortex\gamemodes\VortexR oleplay.pwn(12504) : warning 215: expression has no effect
C:\Users\Gharrett\Desktop\vortex\gamemodes\VortexR oleplay.pwn(12504) : error 001: expected token: ";", but found ")"
C:\Users\Gharrett\Desktop\vortex\gamemodes\VortexR oleplay.pwn(12504) : error 029: invalid expression, assumed zero
C:\Users\Gharrett\Desktop\vortex\gamemodes\VortexR oleplay.pwn(12504) : fatal error 107: too many error messages on one line

can someone help me please

RowdyrideR
08/08/2012, 01:31 AM
it doesnt work like that...

Replace:

if(IsACop(playerid) || PlayerStatistics[playerid][pMember] == 8 || PlayerStatistics[playerid][pLeader] == 8);

With:

if(IsACop(playerid) || PlayerStatistics[playerid][pMember] == 8 || PlayerStatistics[playerid][pLeader] == 8)