C:\Users\*****\Desktop\LGRP 0.3x\gamemodes\LGRP.pwn(5840) : error 001: expected token: ";", but found "}"
#1

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.
Reply
#2

Remove the ';' in new Float:slz
Reply
#3

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
Remove the ';' in new Floatlz
Now I get expected token: ";", but found "-identifier-" and the original error.
Reply
#4

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
Remove the ';' in new Floatlz
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.
Reply
#5

See The Below Post

EDIT: :@ i forgot the use of ';' that time -_-
Reply
#6

@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.
Reply
#7

hah my user name fits me
Reply
#8

Nevermind, I spotted something that shouldn't be in the script, deleted it and it works! Thanks, tho
Reply
#9

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!");
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)