Help error 001: expected token: "-string end-", but found "-identifier-"
#1

i'm trying to make a command which will teleport you to the sf bridge for a drag and it will put every player in a separate position.

if(!strcmp("/liniute", cmdtext, true))
{
if(("LiniutzeSlotsFilled" == 0)
{ //Asking if all the racing slots are filled.
SetPlayerPos(playerid,-2679.0383,1238.0492,55.6894);
SetPlayerFacingAngle(playerid,12.3777);
SetCameraBehindPlayer(playerid);
if(GetPlayerState(playerid) == 2)
SetVehiclePos(GetPlayerVehicleID(playerid),-2679.0383,1238.0492,55.6894);
new vehid = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(playerid,vehid,0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),12.3 777);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, 0xCBF72DFF, "Te-ai teleportat la Liniute");
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));

format(string, sizeof(string), "%s s-a teleportat la {0B668A}/liniute", name);
SendClientMessageToAll(0x19CC12FF, string);
return 1;
}
else if(LiniutzeSlot1[playerid] == 0)
{
SetPlayerPos(playerid,-2694.7053,1281.3621,55.4297);
SetPlayerFacingAngle(playerid,0.4382);
SetCameraBehindPlayer(playerid);
if(GetPlayerState(playerid) == 2)
SetVehiclePos(GetPlayerVehicleID(playerid),-2694.7053,1281.3621,55.4297);
new vehid = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(playerid,vehid,0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),0.43 82);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, 0xCBF72DFF, "Te-ai teleportat la Liniute");
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));

format(string, sizeof(string), "%s s-a teleportat la {0B668A}/liniute", name);
SendClientMessageToAll(0x19CC12FF, string);
LiniutzeSlot1[playerid] = 1;
}


this is the top of the script

forward LiniutzeSlotsFilled(playerid);
public LiniutzeSlotsFilled(playerid)
{
if(LiniutzeSlot1[playerid] == 1 && LiniutzeSlot2[playerid] == 1 && LiniutzeSlot3[playerid] == 1 && LiniutzeSlot4[playerid] == 1)
{//If all the slots are filled, it will tell them all the slots are filled, and they won't be able to join!
return 0;
}
return 0;
}

this is the error: C:\Servers\GtaSaMP\gamemodes\Cris1.pwn(2031) : error 001: expected token: "-string end-", but found "-identifier-"

the 2031th string is if(("LiniutzeSlotsFilled" == 0)
Reply
#2

Can you do with pasteban?
Reply
#3

.....
Reply
#4

Код HTML:
if(("LiniutzeSlotsFilled" == 0)
correct line

Код HTML:
if(LiniutzeSlotsFilled(playerid) == 0)
Reply
#5

thx man i really appreciate it luv ya <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)