Teleport Vehicles With On Error
#1

Good People I learn their Creates More Teleport Fufou not come with the car I Come With The Car That Can Someone Help Me?

Erro:
Quote:

D:\Usuarios\Desktop\SERVER\gamemodes\TESTE.pwn(430 ) : warning 202: number of arguments does not match definition
D:\Usuarios\Desktop\SERVER\gamemodes\TESTE.pwn(430 ) : warning 202: number of arguments does not match definition
D:\Usuarios\Desktop\SERVER\gamemodes\TESTE.pwn(430 ) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

Pawn:
Quote:

//========================AEROMAR=================== ========================
if (strcmp("/aeromar", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -715.2006, 2362.0447, 127.4262);
IsPlayerInAnyVehicle(playerid, -715.2006, 2362.0447, 125.4262);
SendClientMessage(playerid, 0xFF0000FF, "Bem Vindo");
return 1;
}

Reply
#2

IsPlayerInAnyVehicle(playerid, -715.2006, 2362.0447, 125.4262);

what did you try to do here? :O

you need to use it like this -
if(!IsPlayerInAnyVehicle(playerid)) return ................

and it's will block all the other things..
Reply
#3

pawn Код:
if (strcmp("/aeromar", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), -715.2006, 2362.0447, 125.4262);
else SetPlayerPos(playerid, -715.2006, 2362.0447, 127.4262);
SendClientMessage(playerid, 0xFF0000FF, "Bem Vindo");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)