Код:
new suspect;
CMD:bailfriend(playerid, params[])
{
if(PlayerInfo[playerid][pArrested] = 1)
{
new string[128], giveplayerid, reason[64];
if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /bailfriend [playerid]");
if(IsPlayerConnected(giveplayerid))
{
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s has been bailed from jail by %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), month, day, year);
Log("logs/bailfriend.log", string);
format(string, sizeof(string), "AdmCmd: %s has been bailed from jail by %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
WantedPoints[giveplayerid] = 0;
PlayerInfo[suspect][pArrested] += 1;
PlayerInfo[giveplayerid][pWantedLevel] = 0;
PlayerInfo[giveplayerid][pBeingSentenced] = 0;
SetPlayerToTeamColor(giveplayerid);
SetPlayerWantedLevel(giveplayerid, 0);
PlayerInfo[giveplayerid][pJailTime] = 0;
SetPlayerPos(giveplayerid, 1529.6,-1691.2,13.3);
SetPlayerInterior(giveplayerid,0);
PlayerInfo[giveplayerid][pInt] = 0;
SetPlayerVirtualWorld(giveplayerid, 0);
PlayerInfo[giveplayerid][pVW] = 0;
PlayerInfo[giveplayerid][pLocal] = 255;
GivePlayerCash(playerid, -5000);
SendClientMessageEx(playerid, TEAM_CYAN_COLOR, "You succed to bail for your friend, in 5,000$.");
}
else
{
SendClientMessageEx( playerid, COLOR_WHITE, "That Man/Woman is not underarrest." );
}
return 1;
}
Cause I have errors in the script with Prox Dedector heres them , Thats not the same lines but if I remove the command theres no errors , Heres them ...
Код:
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3253) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3261) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3268) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3277) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3291) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3298) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3302) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3305) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3312) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3320) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3327) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3334) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3342) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3345) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3352) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3359) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3381) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3390) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3402) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3417) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3425) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3433) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3451) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3473) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3481) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3489) : error 017: undefined symbol "GivePlayerCash"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Try changing GivePlayerCash to GivePlayerMoney and make sure you put ProxDetector in a stock