10.06.2012, 16:25
Hey I want make teleports. I know how but when an player is in a vehicle and teleport, he lost his vehicle.
I created an teleport I was trying for teleport with vehicles.
But I got errors. namely:
code:
Thx
BEER-samp
I created an teleport I was trying for teleport with vehicles.
But I got errors. namely:
PHP код:
C:UsersEdwardDesktopsamp serverpawnogamemode.pwn(628) : error 076: syntax error in the expression, or invalid function call
C:UsersEdwardDesktopsamp serverpawnogamemode.pwn(628) : warning 202: number of arguments does not match definition
C:UsersEdwardDesktopsamp serverpawnogamemode.pwn(628) : warning 202: number of arguments does not match definition
C:UsersEdwardDesktopsamp serverpawnogamemode.pwn(628) : warning 202: number of arguments does not match definition
C:UsersEdwardDesktopsamp serverpawnogamemode.pwn(629) : error 029: invalid expression, assumed zero
C:UsersEdwardDesktopsamp serverpawnogamemode.pwn(629) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
PHP код:
if (strcmp("/sfa", cmdtext, true, 10) == 0)
{
new vehicleid = PutPlayerInVehicle SetVehiclePos(playerid);
PutPlayerInVehicle(playerid, vehicleid, 4+);
SetVehiclePos(vehicleid, -1205.8723,-163.5191,14.1484);
SetPlayerPos(playerid, -1205.8723,-163.5191,14.1484);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA, "* You have been teleported to San Fiero airport.");
return 1;
}
BEER-samp