SA-MP Forums Archive
need some help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need some help please (/showthread.php?tid=366872)



need some help please - Crossfire1989 - 08.08.2012

command(siren, playerid, params[])
{
if(IsACop(playerid) || PlayerStatistics[playerid][pMember] == 8 || PlayerStatistics[playerid][pLeader] == ;--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] == ; 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


Re: need some help please - RowdyrideR - 08.08.2012

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)