24.03.2009, 17:10
I have a problem with a line (new situation[MAX_PLAYERS][256]) which is supposed to store a text per player if needed, see below
Well I've put this in the OnPlayerText func for cellphone system:
But the problem is that all code after the line "new situation[MAX_PLAYERS][256];" won't load and when I type something in chat box it will well print the string ("%s (tйlйphone) %s") PLUS [playername][text] which is supposed to happen if we only put "return 1" under the OnPlayerText function.
Any help please? Thanks is advance
Well I've put this in the OnPlayerText func for cellphone system:
pawn Код:
if(Mobile[playerid] != 255)
{
new idx;
tmp = strtok(text, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
UnderscoreToSpace( sendername );
format(string, sizeof(string), "%s (tйlйphone): %s", sendername, text);
ProxDetector(20.0, playerid, string, color, color, color, color, color);
new situation[MAX_PLAYERS][256];
new string2[256];
//Blabla and then (at a lower level)
strmid(situation[playerid], text, strlen(text), 256);
//BLABLA
return 1;
}
Any help please? Thanks is advance