10.02.2009, 17:29
i always get errors when scripting but i fixed them but now i have 5 warnings: warning 202: number of arguments does not match definition
help me out with it plz
help me out with it plz
function(param, param, param);
function(param, param); // not enough params defined! function(param, param, param, param); // too many!
Originally Posted by [MLT
Marco ]
1349:return SetVehiclePos(vehicleid,558,2235.4656,1964.6519,31 .5433,267.6731,116.1), 1353: SetPlayerPos(playerid,299,2235.0945,1966.3348,31.7 797,267.783 ![]() |
return SetVehiclePos(558, 2235.4656, 1964.6519, 31.5433, 267.6731); SetPlayerPos(playerid, 2235.0945, 1966.3348, 31.7797); SetPlayerAngle(playerid, 267.7838);
//Command: /drift9 if(strcmp(cmdtext, "/drift9", true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); format(string, sizeof(string), "%s warped to Las Venturas Parking Lot ! ( /drift9 )", player); SendClientMessageToAll(YELLOW, string); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { return SetVehiclePos(playerid, 558, 2235.4656, 1964.6519, 31.5433, 267.6731); GameTextForPlayer(playerid, "~w~", 5000, 5); } SetPlayerPos(playerid,299,2235.0945,1966.3348,31.7797); SetPlayerAngle(playerid, 267.7838); GameTextForPlayer(playerid, "~w~", 5000, 5); return 1; }
Originally Posted by [MLT
Marco ]
Код:
//Command: /drift9 if(strcmp(cmdtext, "/drift9", true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); format(string, sizeof(string), "%s warped to Las Venturas Parking Lot ! ( /drift9 )", player); SendClientMessageToAll(YELLOW, string); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { return SetVehiclePos(playerid, 558, 2235.4656, 1964.6519, 31.5433, 267.6731); GameTextForPlayer(playerid, "~w~", 5000, 5); } SetPlayerPos(playerid,299,2235.0945,1966.3348,31.7797); SetPlayerAngle(playerid, 267.7838); GameTextForPlayer(playerid, "~w~", 5000, 5); return 1; } can someone do it for me coz i tried everything |
if(strcmp(cmdtext, "/drift9", true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
format(string, sizeof(string), "%s warped to Las Venturas Parking Lot ! ( /drift9 )", player);
SendClientMessageToAll(YELLOW, string);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid, "~w~", 5000, 5);
return SetVehiclePos(558, 2235.4656, 1964.6519, 31.5433, 267.6731);
}
SetPlayerPos(playerid, 2235.0945, 1966.3348, 31.7797);
SetPlayerAngle(playerid, 267.7838);
GameTextForPlayer(playerid, "~w~", 5000, 5);
return 1;
}
Originally Posted by [MLT
Marco ]
Код:
//Command: /drift9 if(strcmp(cmdtext, "/drift9", true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); format(string, sizeof(string), "%s warped to Las Venturas Parking Lot ! ( /drift9 )", player); SendClientMessageToAll(YELLOW, string); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { return SetVehiclePos(playerid, 558, 2235.4656, 1964.6519, 31.5433, 267.6731); GameTextForPlayer(playerid, "~w~", 5000, 5); } SetPlayerPos(playerid,299,2235.0945,1966.3348,31.7797); SetPlayerAngle(playerid, 267.7838); GameTextForPlayer(playerid, "~w~", 5000, 5); return 1; } can someone do it for me coz i tried everything |
Originally Posted by SnowFlake
Quote:
![]() SetVehiclePos(playerid, 558, 2235.4656, 1964.6519, 31.5433, 267.6731); SetPlayerPos(playerid, float ![]() SetPlayerPos(playerid,299,2235.0945,1966.3348,31.7797); |