07.05.2017, 19:39
Hello,
so, my old thread was similar. Can't get it to working / Can't understand why. So, i'm trying to get the Player Position to stock, where i'll create a Checkpoint. I searched, but didn't found information about Stock, with a good Example. If someone would say what's causing the Warning, Give a good example, or explain, how should be, to get the Value to Stock, I would be grateful.
Warning:
The Function under Public:
so, my old thread was similar. Can't get it to working / Can't understand why. So, i'm trying to get the Player Position to stock, where i'll create a Checkpoint. I searched, but didn't found information about Stock, with a good Example. If someone would say what's causing the Warning, Give a good example, or explain, how should be, to get the Value to Stock, I would be grateful.
Warning:
PHP код:
(11219) : warning 213: tag mismatch
-- or --
argument type mismatch (argument 2)
PHP код:
... code above
new Float:xback, Float:yback, Float:zback;
GetPlayerPos(playerid, xback, yback, zback);
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(msg,sizeof(msg),"Test: %s, %s",name,work);
MyFunction(COLOR,xback, yback, zback,msg);
PHP код:
Stock:
stock MyFunction(Float:xback, Float:yback, Float:zback,color,text[])
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(playerDB[i][work]==8)
{
SendClientMessage(i,color,text);
SetPlayerCheckpoint(i, xback, yback, zback, 3.0);
}
}
}
}