12.03.2011, 20:27
Hey guys, the follwing code should give a minigun to a player if he have the colour 0xD8C762FF... I am making this for my cop system... i will need this!
Id what fail here but it give me this error:
THANKS!
Id what fail here but it give me this error:
Код:
C:\Users\Ricardo\Desktop\copsystem.pwn(16) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Cop System by Ricardo_Manuel");
print("--------------------------------------\n");
return 1;
}
COMMAND:duty(playerid, params[])
{
if(GetPlayerColor(playerid) == 0xD8C762FF);
GivePlayerWeapon(playerid, 38, 10000);
return 1;
}
COMMAND:mycolor(playerid, params[])
{
SetPlayerColor(playerid, 0xD8C762FF);
return 1;
}