29.09.2013, 16:57
Ok here is the warn/error
Код:
C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : error 017: undefined symbol "YSI_gnew" C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : warning 215: expression has no effect C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : error 001: expected token: ")", but found ";" C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : error 036: empty statement C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
dcmd_givemoney(playerid, params[]) // Level 3 { if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not authorized to use this command!"); new target, money; new string[128]; if(sscanf(params, "ud", target, money)) return SendClientMessage(playerid, COLOR_ORANGE, "CMD: /givemoney [playerid/name] [amount]"); if(!IsPlayerConnected(target)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Invalid player id!"); if(money < 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You can't givemoney below 0!"); GivePlayerMoney(target, money); PlayerInfo[target][pMoney] += money; format(string, sizeof(string), "Admin %s has given you %d !", PlayerName(playerid), money); SendClientMessage(target, COLOR_LIGHTGREEN, string); foreach(new Player ,i) {