Get and goto command involving cars
#8

I have fixed a bunch of errors but am still having trouble
Код HTML:
//get
CMD:get(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] > 1)
    {
        new Float:x, Float:y, Float:z, targetid;
        if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, COLOR_RED, "Usage: /get [Player ID/Name]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, "Error: This player is not connected.");
        else
{
        if(IsPlayerInAnyVehicle(targetid))
        {
              new vehicle = GetPlayerVehicleID(targetid);
              new seat = GetPlayerVehicleSeat(targetid);
              GetPlayerPos(playerid, x, y, z);
              SetPlayerPos(targetid, x, y+1, z);
              SetVehiclePos(vehicle, x, y+1, z);
              PutPlayerInVehicle(targetid, vehicle, seat);
         }
          else
         {
              GetPlayerPos(playerid, x, y, z);
              SetPlayerPos(targetid, x, y+1, z);
         }
	     }
    else SendClientMessage(playerid, COLOR_RED, "You are not at least a level 1 admin!");
	}
    return 1;
}
Quote:

C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(480) : warning 217: loose indentation
C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(480) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply


Messages In This Thread
Get and goto command involving cars - by lramos15 - 29.07.2013, 15:53
Re: Get and goto command involving cars - by RajatPawar - 29.07.2013, 16:11
Re: Get and goto command involving cars - by lramos15 - 29.07.2013, 16:31
Re: Get and goto command involving cars - by lramos15 - 29.07.2013, 16:33
Re: Get and goto command involving cars - by Necip - 29.07.2013, 16:39
Re: Get and goto command involving cars - by lramos15 - 30.07.2013, 03:24
Re: Get and goto command involving cars - by wumpyc - 30.07.2013, 06:03
Re: Get and goto command involving cars - by lramos15 - 30.07.2013, 14:42
Re: Get and goto command involving cars - by [HiC]TheKiller - 31.07.2013, 06:29
Re: Get and goto command involving cars - by lramos15 - 31.07.2013, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)