01.02.2011, 00:12
Quote:
C:\Documents and Settings\Administrator.ZAP-SERVER\Desktop\Last server\gamemodes\lslrp.pwn(42069) : warning 202: number of arguments does not match definition C:\Documents and Settings\Administrator.ZAP-SERVER\Desktop\Last server\gamemodes\lslrp.pwn(42353) : error 017: undefined symbol "UsingTazer" C:\Documents and Settings\Administrator.ZAP-SERVER\Desktop\Last server\gamemodes\lslrp.pwn(42353) : warning 215: expression has no effect C:\Documents and Settings\Administrator.ZAP-SERVER\Desktop\Last server\gamemodes\lslrp.pwn(42353) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administrator.ZAP-SERVER\Desktop\Last server\gamemodes\lslrp.pwn(42353) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator.ZAP-SERVER\Desktop\Last server\gamemodes\lslrp.pwn(42353) : fatal error 107: too many error messages on one line |
Код:
if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 14) { if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_GREY, " Cannot use this while being in the Car!"); return 1; } if(UsingTazer[playerid] == 0) { GetPlayerWeaponData(playerid, 2, SaveHandGun[playerid][0],SaveHandGun[playerid][1]); GivePlayerWeapon(playerid, 23, 40); UsingTazer[playerid]=1; GetPlayerName(playerid, sendername, sizeof(sendername)); GiveNameSpace(sendername); if(PlayerInfo[playerid][pMaskUse] == 1) { format(sendername, sizeof(sendername), "Stranger_%d", RandMask[playerid]); } format(string, sizeof(string), "* %s unholsters his tazer from his duty belt.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { GetPlayerName(playerid, sendername, sizeof(sendername)); GivePlayerWeapon(playerid, 24, 0); GivePlayerWeapon(playerid, SaveHandGun[playerid][0], SaveHandGun[playerid][1]); GiveNameSpace(sendername); UsingTazer[playerid]=0; if(PlayerInfo[playerid][pMaskUse] == 1) { format(sendername, sizeof(sendername), "Stranger_%d", RandMask[playerid]); } format(string, sizeof(string), "* %s holsters his tazer into his duty belt.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a Cop!"); } } return 1; }