25.09.2012, 11:59
Hello I made a /givegr cmd, and /givecr cmd , that's work , after that I enter the script PWN , Than try to change that for only admin's can use that, that's write me error's . That's the cmd's code's with the only admin's permission
Now that's the error's from compile by Pawno after that , i have to know what to do ?
Somone can write here the right code ?
Код:
CMD:CMD:givegr(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 1337) } { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid),1080); SendClientMessage(playerid, 0xFFFFFFFF, "You have added Gold Rims to your vehicle."); return 1; } givecr(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 1337) return 1; } { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid),1079); SendClientMessage(playerid, 0xFFFFFFFF, "You have added Cutter Rims to your vehicle."); return 1; }
Now that's the error's from compile by Pawno after that , i have to know what to do ?
Код:
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2877) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2884) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2891) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2900) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2914) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2921) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2925) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2928) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2935) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2943) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2946) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2953) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2960) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2974) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2983) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2995) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3014) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3028) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3042) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3050) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3055) : error 017: undefined symbol "ProxDetector" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3214) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3472) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3473) : error 017: undefined symbol "GivePlayerCash" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(4774) : error 017: undefined symbol "NOPCheck" d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(5351) : error 017: undefined symbol "NOPCheck" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.