zcmd GetPlayerColor help
#1

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:

Код:
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;
}
THANKS!
Reply


Messages In This Thread
zcmd GetPlayerColor help - by ricardo178 - 12.03.2011, 20:27
Re: zcmd GetPlayerColor help - by xir - 12.03.2011, 20:31
Re: zcmd GetPlayerColor help - by Skylar Paul - 12.03.2011, 20:33
Re: zcmd GetPlayerColor help - by Haydz - 12.03.2011, 20:33
Re: zcmd GetPlayerColor help - by ricardo178 - 12.03.2011, 20:52
Re: zcmd GetPlayerColor help - by Scrip - 12.03.2011, 22:02

Forum Jump:


Users browsing this thread: 2 Guest(s)