10.01.2015, 22:51
Код:
[16:48:15] [debug] AMX backtrace: [16:48:15] [debug] #0 00000036 in ?? (52, 0, 2992620) from gamemode.amx [16:48:15] [debug] #1 0000e350 in ?? (52, 0, 1783793664, 0, 2992712, 320916, 4, 2, 0, 0, ... <3 arguments>) from gamemode.amx [16:48:15] [debug] #2 00000036 in public cmd_setscore () from gamemode.amx [16:48:15] [debug] #3 native CallLocalFunction () from samp03svr [16:48:15] [debug] #4 0001167c in ?? (2, 2976556) from gamemode.amx [16:48:15] [debug] #5 00006260 in public OnPlayerCommandText (2, 2976556) from gamemode.amx
Код:
CMD:setscore(playerid, params[]) { if(IsPlayerAdmin(playerid)) { if(sscanf(params, "ud", params[0], params[1])) return SendClientMessage(playerid, COLOR_ROJO, "Usa: /setscore [id] [score]"); if(params[0] == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ROJO, "Ese jugador no esta conectado"); PlayerInfo[params[0]][Score] = params[1]; SetPlayerScore(params[0], PlayerInfo[params[0]][Score]); SaveAccount(params[0]); } else SendClientMessage(playerid, COLOR_ROJO, "Comando solo para administradores RCON!"); return 1; }