19.02.2014, 14:30
im trying to make a /me command but instead of a command i would need to write the message in the dialog i tried this:
else if(dialogid == skalbimas)
{
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "[ME]: %s %s", name, params);
SendClientMessageToAll(-1, string);
return 1;
}
but i get a error at line 541
D:\GAMES\GTASA\SAMP\gamemodes\darbas.pwn(541) : error 017: undefined symbol "params"
can anybody help me ?
else if(dialogid == skalbimas)
{
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "[ME]: %s %s", name, params);
SendClientMessageToAll(-1, string);
return 1;
}
but i get a error at line 541
D:\GAMES\GTASA\SAMP\gamemodes\darbas.pwn(541) : error 017: undefined symbol "params"
can anybody help me ?