SA-MP Forums Archive
Teleport Vehicles With On Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Teleport Vehicles With On Error (/showthread.php?tid=250649)



Teleport Vehicles With On Error - ReDKiiL - 24.04.2011

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;
}




Re: Teleport Vehicles With On Error - tal_peretz - 24.04.2011

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..


Re: Teleport Vehicles With On Error - Donya - 24.04.2011

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;
}