- 0
CMD:UP ,problem
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
SpriTe_
Salut SA-MP.ro, cerez un GM acum si am o problema cu comanda CMD:up, iata scriptul:
[pawn]
CMD:up( playerid, params[ ] )
{
new Float:x, Float:y, Float:z;
new string[ 128 ];
new height = strval( string );
if ( height == 0 ) return SendClientMessage( playerid, COLOR_RED, "USAGE: {FFFF00}/up <Height>" );
if ( IsPlayerInAnyVehicle( playerid ) )
{
GetVehiclePos( GetPlayerVehicleID( playerid ), x, y, z );
SetVehiclePos( GetPlayerVehicleID( playerid ), x, y, z + height );
}
else
{
GetPlayerPos( playerid, x, y, z );
GivePlayerWeapon( playerid, 46, 1 );
SetPlayerPos( playerid, x, y, z + height );
}
return 1;
}
[/pawn]
Deci sa va explic, ca exemplu eu intru in joaca, scriu comanda /up 5 ( acest 5 indica inaltimea ), dupa ce scriu asta, nu ma ridica in sus, dar apare in chat ca nu folosesc corect, adica apare linia asta din comanda:
[pawn]
if ( height == 0 ) return SendClientMessage( playerid, COLOR_RED, "USAGE: {FFFF00}/up <Height>" );
[/pawn]
Care e greseala, am omis ceva?
12 answers to this question
Recommended Posts