23.01.2015, 18:03
(
Последний раз редактировалось xX4m4zingXx; 24.01.2015 в 18:11.
)
Okay, I have this code now:
And I have this error:
Код:
CMD:giverights(playerid, params[]) { if(PlayerInfo[playerid][pRights] < 3) return 0; new target, rights[64], Playername[MAX_PLAYER_NAME], Adminname[MAX_PLAYER_NAME]; GetPlayerName(playerid, Adminname, sizeof(Adminname)); GetPlayerName(target, Playername, sizeof(Playername)); if(sscanf(params, "us[64]", target,rights)) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /kick [playerid] [reason]"); if(!IsPlayerConnected(target)) return SendClientMessage(playerid, COL_GREY, "Player is not connected!"); PlayerInfo[target][pRights] = rights; return 1; }
Код:
C:\Users\Ruud\Documents\Samp\RP alles in 1\gamemodes\RP.pwn(582) : error 006: must be assigned to an array