Well, the commands are wrong's, there's no doublt.
if you wish me to fix it, post your vars, and the whole commands. please use [pawn] [./pawn] instead of just post it. |
command(paytoll, playerid, params[])
{
if(Player[playerid][Authenticated] == 1);
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 618.9771,336.9608,19.2733))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, GREY, "[Paytoll -$5] Welcome to Bone County. Enjoy your stay!");
Player[playerid][Money] -= 5;
MoveObject(paytoll1, 618.2999, 345.2999, 18.8999, 50.0, 0.0, 16.0000, 213.7507);
SetTimer("paytoll1close", 5000, 0);
//MoveObject(paytoll2, 606.5000, 337.3999, 18.7999, 10.0, 0.0, 15.7497, 33.4983);
}
else return SendClientMessage(playerid, GREY, "You must be in a Vehicle.");
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 606.4752,345.4309,18.9297))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, GREY, "[Paytoll -$5] Welcome to Red County. Enjoy your stay!");
Player[playerid][Money] -= 5;
//MoveObject(paytoll1, 618.2999, 345.2999, 18.8999, 10.0, 0.0, 16.0000, 213.7507);
MoveObject(paytoll2, 606.5000, 337.3999, 18.7999, 50.0, 0.0, 15.7497, 33.4983);
SetTimer("paytoll2close", 5000, 0);
}
else return SendClientMessage(playerid, GREY, "You must be in a Vehicle.");
}
else return SendClientMessage(playerid, GREY, "You are not near the Paytoll.");
}
else return SendClientMessage(playerid, GREY, "You must be logged in.");
return 1;
}
forward paytoll1close();
public paytoll1close()
{
MoveObject(paytoll1, 618.2999, 345.2999, 18.8999, 50.0, 0.0, 90.0, 213.7506);
}
forward paytoll2close();
public paytoll2close()
{
MoveObject(paytoll2, 606.5000, 337.3999, 18.7999, 50.0, 0.0, 89.7497, 33.4983);
}
if(Player[playerid][Authenticated] == 1)
new Player[MAX_PLAYERS][enum];
C:\Users\User\Desktop\samp\gamemodes\ServeriGM.pwn(12410) : error 017: undefined symbol "command"
C:\Users\User\Desktop\samp\gamemodes\ServeriGM.pwn(12412) : error 001: expected token: ")", but found "["
C:\Users\User\Desktop\samp\gamemodes\ServeriGM.pwn(12412) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\samp\gamemodes\ServeriGM.pwn(12412) : error 017: undefined symbol "Authenticated"
C:\Users\User\Desktop\samp\gamemodes\ServeriGM.pwn(12412) : fatal error 107: too many error messages on one line