sscanf error
#1

pawn Код:
[10:56:15] sscanf error: String/array must include a length, please add a destination size.
[10:56:32] sscanf error: String/array must include a length, please add a destination size.
I get this in my server console if I use command plant,here it is:
pawn Код:
CMD:plant(playerid,params[])
{
    if(PlayerItems[playerid][Mseeds]>=1)
    {
       
        new Float:x,Float:y,Float:z,string[126];
        GetPlayerPos(playerid,x,y,z);
        PlantOwner[Plants]=playerid;
        PlantObjectID[Plants]=CreateObject(19473,x,y,z-1,4,0,0,0);
        Plants++;
        PlayerItems[playerid][Mseeds]=PlayerItems[playerid][Mseeds]-1;
        SaveStats(playerid);
        format(string,sizeof(string),"Liko seklu: %d",PlayerItems[playerid][Mseeds]);
        SendClientMessage(playerid,0xFBFB00FF,string);
    }
    else SendClientMessage(playerid,0xFF0000FF,"You don't have any seeds");
    return 1;
}
Can someone tell my what is the problem?
Reply


Messages In This Thread
sscanf error - by dusk - 18.02.2013, 07:35
Re: sscanf error - by electrux - 18.02.2013, 09:07
Re: sscanf error - by dusk - 18.02.2013, 17:36
Re: sscanf error - by Boooth - 18.02.2013, 18:31
Re: sscanf error - by dusk - 18.02.2013, 18:55
Re: sscanf error - by Boooth - 18.02.2013, 19:09
Re: sscanf error - by dusk - 18.02.2013, 19:36

Forum Jump:


Users browsing this thread: 3 Guest(s)