06.03.2014, 07:20
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?