Stack problem
#3

If i make an array like smsg[256]; on top of gamemode and and i delete all strings on my gamemode and modifiy with smsg ? like -

pawn Код:
top of gm
new smsg[256];

--- function,public,stock all - from
stock PayTicket(playerid,slot)
{

    SetPVarInt(playerid,"ticket_slot",slot);
    new str[256];
    format(str,sizeof(str),"SELECT * FROM rp_fines WHERE suspect = '%d' AND paid = 0",CharacterInfo[playerid][active_character[playerid]][cID]);
    mysql_query(str,player_threads[playerid],QUERY_PAY_TICKET);

}

to

stock PayTicket(playerid,slot)
{

    SetPVarInt(playerid,"ticket_slot",slot);
    format(smsg,sizeof(smsg),"SELECT * FROM rp_fines WHERE suspect = '%d' AND paid = 0",CharacterInfo[playerid][active_character[playerid]][cID]);
    mysql_query(smsg,player_threads[playerid],QUERY_PAY_TICKET);

}

 it's a good idea?
Reply


Messages In This Thread
Stack problem - by Marksman - 05.03.2014, 17:20
Re: Stack problem - by AndreT - 05.03.2014, 17:40
Re: Stack problem - by Marksman - 06.03.2014, 07:20
Re: Stack problem - by Vince - 06.03.2014, 07:36

Forum Jump:


Users browsing this thread: 1 Guest(s)