C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
FlawPaw - 04.11.2013
error 001: expected token: ";", but found "}"
A few lines before 5840
pawn Код:
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+1.3);
PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
RemovePlayerFromVehicle(playerid);
NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not a VIP, this is a vehicle from the VIP Garage!");
}
Help me solve it ASAP, please.
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
newbie scripter - 04.11.2013
Remove the ';' in new Float:slz
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
FlawPaw - 04.11.2013
Quote:
Originally Posted by newbie scripter
Remove the ';' in new Float lz
|
Now I get expected token: ";", but found "-identifier-" and the original error.
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
Ada32 - 04.11.2013
Quote:
Originally Posted by newbie scripter
Remove the ';' in new Float lz
|
err no?
Quote:
Originally Posted by op
Now I get expected token: ";", but found "-identifier-" and the original error.
|
the error has nothing to do with those lines.
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
newbie scripter - 04.11.2013
See The Below Post
EDIT: :@ i forgot the use of ';' that time -_-
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
AlonzoTorres - 04.11.2013
@newbie_scripter: Why would he remove that semicolon?
@FlawPaw: I don't see an error in this code, show us more code above and below this.
@newbie_scripter: Wrong again.
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
newbie scripter - 04.11.2013
hah my user name fits me
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
FlawPaw - 04.11.2013
Nevermind, I spotted something that shouldn't be in the script, deleted it and it works! Thanks, tho
Re: C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}" -
Jony_Cruze - 04.11.2013
don't delete..
pawn Код:
if is a public make like this
forward test();
public test()
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+1.3);
PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
RemovePlayerFromVehicle(playerid);
NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not a VIP, this is a vehicle from the VIP Garage!");
}