Search Results
Again it returns errors
121
Код:
format(query,sizeof(query),"UPDATE players SET " \
"Level = %d , " \
"Hours = %d , " \
"Minutes = %d , " \
"Checks = %d , " \
"Admin = %d , " \
"Helper = %d , " \
"Donator = %d , " \
...
121
Thanks i fixed it in another way but still thank you
83
Even without it its the same
i mean if i change
for(new ii = 0; ii <= rows; ii++) to for(new i = 0; i <= rows; i++)
its still the same
83
Код:
public LoadDoors()
{
new string[200], i;
static rows,fields;
cache_get_data(rows, fields, Connection);
for(new ii = 0; ii <= rows; ii++)
{
i = ii + 1;
Doors++;
dI...
83
I think the default VirtualWorld is 0 ?And yes it prints something in the string
64
Код:
while(Doorss >= 1)
{
dInfo[Doorss][dOne] = CreatePickup(dInfo[Doorss][dPickup], 1, dInfo[Doorss][dPos][0], dInfo[Doorss][dPos][1], dInfo[Doorss][dPos][2], 0);
format(string, sizeof...
64
Code:
Код:
else if(dialogid == 18)
{
if(response)
{
new string[128], query[200];
format(query,sizeof(query),"UPDATE doors SET pickup = %d WHERE ID = %d",inputtext,E...
69
So i have to make it like that ?
Код:
cache_get_field_content(0,"Password",pInfo[playerid][Password]);
pInfo[playerid][Level] = cache_get_field_content_int(1,"Level");
pInfo[playerid][Hour...
127
Then how to load player account ? ?
Код:
public LoadAccount(playerid)
{
cache_get_field_content(0,"Password",pInfo[playerid][Password]);
pInfo[playerid][Level] = cache_get_field_content_in...
127
My code is:
Код:
//This is under OnGameModeInit
mysql_function_query(Connection,"SELECT * FROM houses",false,"LoadHouses","i",playerid);
//The public
public LoadHouses()
{
new string[128];
st...
127
Quote:
Originally Posted by Mathieu371
Code:
format(query,sizeof(query),"UPDATE factions SET `Rank 1` = '%s' WHERE ID = %d",inputtext,EditingFacid);
mysql_function_query(Connection,query,...
178
Oh i posted wrong sql log.
New log:
Code:
[12:07:28] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE factions SET Rank 1 = 'asdasd' WHERE ID = 53", callback: "(null)", format: "(null)"
[12:07:28...
178
Code:
format(query,sizeof(query),"UPDATE factions SET Rank 1 = '%s' WHERE ID = %d",inputtext,EditingFacid);
mysql_function_query(Connection,query,false,"","");
Error:
Code:
[12:07:09] [DEBUG] mysql_...
178
Code:
Код:
else if(dialogid == 7)
{
if(response)
{
new string[128], vehicleid;
if(sscanf(inputtext, "r", vehicleid)) return Error06
format(string, sizeof(s...
76
Код:
strcat(string2, "Account - Player level:%d | Playing hours:%d | Playing minutes:%d | Checks signed:%d | Administrator level:%d | Helper level:%d | Donator level:%d\n",pInfo[playerib][Level],p...
135
I get error for too long line even if i split the arguments.....
@FplayerrGR i cant understand that...
135
But the problem is that i get error for too long line when i use format, because i have over 20 things that i want to put in, this is why i use strcat...
135
Quote:
Originally Posted by Konstantinos
"inputtext" is string not an integer. sscanf can be used:
pawn Код:
new f_id;if (sscanf(inputtext, "r", f_id)) return // player didn't input a ...
109