- 0
CMD:UP ,problem
-
Similar Content
-
- 1 answer
- 604 views
-
- 0 answers
- 658 views
-
- 1 answer
- 1,042 views
-
- 5 replies
- 641 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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?
Link to comment
Share on other sites
12 answers to this question
Recommended Posts