G:\DOCUME~1\Admin\Desktop\SAMP\FILTER~1\COPYOF~1.P WN(187) : warning 202: number of arguments does not match definition
G:\DOCUME~1\Admin\Desktop\SAMP\FILTER~1\COPYOF~1.P WN(219) : error 029: invalid expression, assumed zero
G:\DOCUME~1\Admin\Desktop\SAMP\FILTER~1\COPYOF~1.P WN(219) : error 017: undefined symbol "Wait"
G:\DOCUME~1\Admin\Desktop\SAMP\FILTER~1\COPYOF~1.P WN(220) : error 029: invalid expression, assumed zero
G:\DOCUME~1\Admin\Desktop\SAMP\FILTER~1\COPYOF~1.P WN(220) : error 017: undefined symbol "Wait"
Код:
public OnPlayerSpawn(playerid)
{
if(PVar[playerid][pLastX] == 0.0 && PVar[playerid][pLastY] == 0.0)
{
new
RPos = random(sizeof(RandSpawns));
SetPlayerPos(playerid, RandSpawns[RPos][0], RandSpawns[RPos][1], RandSpawns[RPos][2]);
}
else
{
SetTimerEx("Wait"/*Name of the Function/Timer*/, 3000/*Time - 3sec*/, false/*It will not repeate*/,/*You're sending players ID as a parameter ->*/ "i", playerid);
return 1;
}
forward Wait(playerid);
public Wait(playerid)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to my server!");
return 1;
}
return 1;
}