09.09.2009, 00:06
when i type the command in my server /points the command works perfect but i get SERVER:Unknown command immidiatley after:
HERES THE CODE
HERES THE CODE
Код:
dcmd_points(playerid, params[]) { #pragma unused params if(logged[playerid] == 1) { new file[128], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(file, sizeof(file), "\\Users\\%s.ini", pname); dini_IntSet(file, "serverpoints", serverpoints[playerid]); new str[128]; format(str, sizeof(str), "You currently have %d Server Points", serverpoints[playerid]); SendClientMessage(playerid, COLOR_YELLOW, str); SendClientMessage(playerid, red, "Type /spendpoints to find out what you can use you're points on!"); } else { SendClientMessage(playerid, red, "Error: You need to be logged in to see you're server points!."); } }