Suggestion file, Y_Ini.
#2

i think you have to make a string for that

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;
}
mine
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
Reply


Messages In This Thread
Suggestion file, Y_Ini. - by HY - 12.12.2014, 15:19
Re: Suggestion file, Y_Ini. - by JeaSon - 12.12.2014, 15:55
Re: Suggestion file, Y_Ini. - by Lordzy - 12.12.2014, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)