15.05.2013, 20:51
Код:
CMD:vtime(playerid, params[]) { new time, minute, new str[100]; if(Player[playerid][viplevel] < 1) return ERRORMSG(playerid); if(sscanf(params, "dd", time, minute)) return SendClientMessage(playerid, ADMIN_ACTION, "•• Correct syntax is /vtime[ time ] [ minute ]"); format(str, sizeof(str), "[Success]: You changed the time to: %d hours and %d minutes", time, minute); SendClientMessage(playerid, -1, str); SetPlayerTime(playerid, time, minute); return 1; }
Код:
C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4711) : error 001: expected token: "-identifier-", but found "new" C:\Usersc\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : error 017: undefined symbol "str" C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : error 017: undefined symbol "str" C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : error 029: invalid expression, assumed zero C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.