small help
#2

Use sscanf instead, it works perfectly with zcmds,
download it from here: https://sampforum.blast.hk/showthread.php?tid=570927

PHP код:
#include <sscanf2>
CMD:placegate(playeridparams[]){
    new 
passwordFloat:pPos[4];
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessageplayerid, -1"You need to exit your vehicle." );
    if(
sscanf(params"i"password)) return SendClientMessageplayerid, -1"Syntax: /placegate [password]" );
    
GetPlayerPosplayeridpPos[0], pPos[1], pPos[2] );
    
GetPlayerFacingAngleplayeridpPos[3] );
    
CreateGateplayeridstrvalparams ), pPos[0], pPos[1], pPos[2], pPos[3] );
    
SendClientMessageplayerid, -1"You succesfully created a movable gate. Use /gopen or /gclose." );
    return 
1;

Reply


Messages In This Thread
small help - by bugmenotlol - 31.10.2016, 09:17
Re: small help - by Eoussama - 31.10.2016, 09:33
Re: small help - by NealPeteros - 31.10.2016, 09:35
Re: small help - by NealPeteros - 31.10.2016, 09:43
Re: small help - by DTV - 31.10.2016, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)