help me
#1

so i have this
Код:
//---------------------------------[LCS]-----------------------------------------
	if(strcmp(cmd, "/gotolcs", true) == 0) //
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pAdmin] >= 1)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, -1038.3295,-1030.3242,129.2119,104.6418);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
					LinkVehicleToInterior(tmpcar, 0);
					SetPlayerVirtualWorld(playerid, 0);
				}
				else
				{
					SetPlayerPos(playerid, -1035.0485,-1030.0416,129.3460,91.7961);
					SetPlayerVirtualWorld(playerid, 0);
				}
    			SendClientMessage(playerid, COLOR_GRAD1, "You have Been Teleported");
    			SendClientMessage(playerid, COLOR_NICERED, "Welcome to the Lcs Area.");
    			SetPlayerInterior(playerid,0);
				DisablePlayerCheckpoint(playerid);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
				return 1;
			}
		}
		return 1;
	}

	if(strcmp(cmd, "/openlcs", true) == 0) // By CuervO_NegrO
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4 && PlayerInfo[playerid][pDM] < 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
                return 1;
            }
            SendClientMessageToAll(TEAM_GROVE_COLOR, "PlayZone Server LCS is now OPEN!");
			SendClientMessageToAll(TEAM_GROVE_COLOR, "We have only 30 slots so hurry up");
		}
		return 1;
	}

if(strcmp(cmd,"/lcscount",true) == 0 || strcmp(cmd,"/lcscd",true) == 0) // By CuervO_NegrO
	{
		if(PlayerInfo[playerid][pDM] == 1)
		{
		    for(new i = 0; i < MAX_PLAYERS; i++)
		    if(PlayerInfo[i][pDTK] == 1 || IsPlayerInRangeOfPoint(i,250,-1398.3799,994.8915,1024.0889))
  			{
  			    SetTimer("DD1", 1000, false);
       			SetTimer("DD2", 2000, false);
       			SetTimer("DD3", 3000, false);
       			SetTimer("DD4", 4000, false);
       			SetTimer("DD5", 5000, false);
       			SetTimer("DD6", 6000, false);
			}

		}
		return 1;
	}
and i hawe this 2 erros ... this are the coordonates to the place where i want to go

Код:
C:\Users\bos\Desktop\PlayZone.pwn(15827) : warning 202: number of arguments does not match definition
C:\Users\bos\Desktop\PlayZone.pwn(15834) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.


So what is wrong??
Please help
Reply
#2

What is wrong??

First use PAWN code..

Second show what line is 15827 and 15834
Reply
#3

15827 SetVehiclePos(tmpcar, -1038.3295,-1030.3242,129.2119,104.641;
15834 SetPlayerPos(playerid, -1035.0485,-1030.0416,129.3460,91.7961);

the lines
Reply
#4

Код:
SetVehiclePos(tmpcar, -1038.3295 ,-1030.3242, 129.2119;
SetPlayerPos(playerid, -1035.0485, -1030.0416, 129.3460);
Try this ?!
Reply
#5

Quote:
Originally Posted by Dizzle
Посмотреть сообщение
Код:
SetVehiclePos(tmpcar, -1038.3295 ,-1030.3242, 129.2119;
SetPlayerPos(playerid, -1035.0485, -1030.0416, 129.3460);
Try this ?!
ok and now iw got this
Код:
C:\Users\bos\Desktop\PlayZone.pwn(15827) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

I forgot to put the bracket ")" , my bad -

Код:
SetVehiclePos(tmpcar, -1038.3295, -1030.3242, 129.2119);
SetPlayerPos(playerid, -1035.0485, -1030.0416, 129.3460);
Reply
#7

uh whixh lines are error lines
Reply
#8

its working tanks a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)