11.01.2010, 16:01
i need help with becomecop command , can somone help to fix this command ?
ERRORS
pawn Код:
if (strcmp("/becomecop", cmdtext, true, 10) == 0)
{
if (GetPlayerScore(playerid) >= 600 && GetPlayerSkin(playerid) >= 267)
{
SendClientMessage(playerid,0xFFFFFFFF,"You Are Now Cop!");
SetPlayerSkin(playerid, 267);
GivePlayerWeapon(playerid, 22, 100);
GivePlayerWeapon(playerid, 3, 1);
SetPlayerColor(playerid,COLOR_BLUE);
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,"You Need Atleast 600 Score Point To Become Cop!");
}
else // line 1691
{
SendClientMessage(playerid,0xFFFFFFFF,"You Are Already Cop!");
}
return 1;
}
Код:
D:\GTA San Andreas\gamemodes\kfsr2.pwn(1691) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.