12.07.2009, 23:03
Hey guys today I was editing my servers script for an upcoming match, and this happened.
Here's what I was scripting.
Was trying to make it so that when a cop did /duty they got 100 armor, and when they did it again they lost it. I don't see a problem with that?
Код:
C:\Documents and Settings\Owner.Borat\Desktop\Desktop folers\Server\samp02Xserver.win32\AG-RP.pwn(20) : fatal error 100: cannot read from file: "MidoStream" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255) { if(OnDuty[playerid]==0) { format(string, sizeof(string), "* Officer %s took a Badge and a Gun from his locker.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 3, 1); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { format(string, sizeof(string), "* Officer %s places his Badge and Gun in his locker.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 23, 150); GivePlayerWeapon(playerid, 5, 0); SetPlayerArmour(playerid,0); OnDuty[playerid] = 0; } } else {