19.03.2011, 19:06
(
Последний раз редактировалось gamer931215; 19.03.2011 в 19:48.
)
I tried... but my function is writing the mod idiot things D:
Callback:
Function:
Console:
its all random :S, this time it had the password good, but the username was still fcked up
after another reloadfs it even showed some source code :S
Callback:
pawn Код:
yoursql_insert("Users","ssiii",pName,inputtext,GetPlayerScore(playerid),GetPlayerMoney(playerid),PlayerInfo[playerid][level]);
pawn Код:
stock yoursql_insert(table[],type[],{ Float, _ }: ...)
{
/*new query[256];format(query,sizeof query,"INSERT INTO %s (%s) VALUES (%s)",table,GetStructure(table),values);
return mysql_query(query,-1,-1,connection);*/
for(new a = 0;a<numargs();a++)
{
switch(type[a])
{
case 's':
{
new temp[32];
for(new b = 0;b<32;b++)
{
if(!strlen(temp))
{
format(temp,sizeof temp,"%s",getarg(a +2,b));
} else format(temp,sizeof temp,"%s%s",temp,getarg(a +2,b)); //+2 because else its start reading from Table[] ?
}
printf("STR DEBUG: %s",temp);
}
}
}
}
Код:
[20:42:22] STR DEBUG: Gamerј [20:42:22] STR DEBUG: tamerјeamerјsamerјtame
Код:
[20:40:38] STR DEBUG: GamerTј [20:40:38] STR DEBUG: test1337
Код:
[20:33:43] STR DEBUG: GamerЊњ°я°PgИxrД [20:33:43] STR DEBUG: wachtwoordPlayerlevelPassword%stest133
Код:
[20:50:54] STR DEBUG: Gamer<ј [20:50:54] STR DEBUG: test [20:50:54] STR DEBUG: [20:50:54] STR DEBUG: OnPlayerCommandReceivedOnPlay