03.04.2011, 05:38
pawn Код:
else if(strcmp(cmd, "/report", true) == 0) {
new tmp[256], tmp2[256];
tmp = strtok(cmdtext, idx), tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp2)) SendClientMessage(playerid, COLOR_RED, "USAGE: /report [ID] [Reason]");
else if(!IsPlayerConnected(strval(tmp))) SendClientMessage(playerid, COLOR_RED, "Invalid ID");
else {
new name[256], name2[256];
GetPlayerName(playerid, name, 256);
GetPlayerName(playerid, name2, 256);
PlayerInfo[playerid][activereport] = 1, PlayerInfo[playerid][reporttext] = tmp2, PlayerInfo[playerid][reportname] = name2;
printf("Player %s has just reported %s", name, name2);
new string[256];
format(string, 256, "Player %s has just reported %s", name, name2);
SendClientMessage(playerid, COLOR_DARKGREEN, string);
}
return 1;
}
Код:
C:\Users\Waleed Malik\Desktop\samp03csvr_win32_1\gamemodes\dss.pwn(579) : error 006: must be assigned to an array C:\Users\Waleed Malik\Desktop\samp03csvr_win32_1\gamemodes\dss.pwn(579) : error 006: must be assigned to an array