12.12.2014, 15:55
i think you have to make a string for that
yours
you did
mine
and here you got for limits
https://sampwiki.blast.hk/wiki/Limits
yours
you did
pawn Код:
new Sugestion; // its wrong
pawn Код:
CMD:sugestie(playerid, params[])
{
new Suggestion;
if(sscanf(params,"s", Suggestion)) return SendClientMessage(playerid, -1, "{FFCC33}Folosire: {15FF00}/Sugestie [Sugestie]");
new INI:File = INI_Open(SugPath(playerid));
INI_SetTag(File,"Sugestii");
INI_WriteInt(File,"Sugestie: ", Suggestion);
INI_Close(File);
SendClientMessage(playerid, -1, "{FFCC33}Sugestia ta a fost trimisă owner-ului: {FF0000}Teddy {FFCC33}. Vă multumim!");
return 1;
}
pawn Код:
new Sugestion[256];// this is correct ! so 256 is the size of string how many words a player can write in sugestion
pawn Код:
CMD:sugestie(playerid, params[])
{
new Suggestion[256];
if(sscanf(params,"s[256]", Suggestion)) return SendClientMessage(playerid, -1, "{FFCC33}Folosire: {15FF00}/Sugestie [Sugestie]");
new INI:File = INI_Open(SugPath(playerid));
INI_SetTag(File,"Sugestii");
INI_WriteInt(File,"Sugestie: ", Suggestion);
INI_Close(File);
SendClientMessage(playerid, -1, "{FFCC33}Sugestia ta a fost trimisă owner-ului: {FF0000}Teddy {FFCC33}. Vă multumim!");
return 1;
}
and here you got for limits
https://sampwiki.blast.hk/wiki/Limits