MySQL error
#1

hello can some1 help my to solve this error ?

Код:
gamemodes\grandlarc.pwn(464) : warning 202: number of arguments does not match definition
Код:
public OnPlayerDisconnect(playerid, reason)
{
	if(IsPlayerNPC(playerid)) return 1;
	
	
    new query[128], Float:pos[4]; //query[128] is for formatting our query and Float:pos[3] is for getting and saving player's position
    GetPlayerPos(playerid, pos[0], pos[1], pos[2], pos[3]); //let's get player's position when they leave your server
    mysql_format(sqlconnect, query, sizeof(query), "UPDATE `accounts` SET `Admin`=%d, `Vip`=%d, `Money`=%d, `posX`=%f, `posY`=%f, `posZ`=%f, `posA`=%f WHERE `ID`=%d",\
    PlayerInfo[playerid][Admin], PlayerInfo[playerid][Vip], PlayerInfo[playerid][Money], pos[0], pos[1], pos[2], pos[3],PlayerInfo[playerid][ID]);
    //We update the table(`players`) by getting player's admin level, vip level, money, and positions and save them in the database
    mysql_tquery(sqlconnect, query, "", "");
    //let's execute the query.
    return 1;
}
Reply
#2

okay i think i understand ware is problem getplayerposhave only 4 arguments so i need to set comandsomething like getplayerangle right ? but when i put something like that i got

Код:
stuff\Samp Server R4\gamemodes\grandlarc.pwn(465) : error 017: undefined symbol "GetPlayerAngle"
please help my some1
Reply
#3

Quote:
Originally Posted by cyberlord
Посмотреть сообщение
okay i think i understand ware is problem getplayerposhave only 4 arguments so i need to set comandsomething like getplayerangle right ? but when i put something like that i got

Код:
stuff\Samp Server R4\gamemodes\grandlarc.pwn(465) : error 017: undefined symbol "GetPlayerAngle"
please help my some1
Use GetPlayerFacingAngle(playerid,angle); To get their facing angle, for example:
pawn Код:
new Float:angle;
    GetPlayerFacingAngle(playerid,angle);
Also, in your first post, that was the problem
Reply
#4

tnx works now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)