Barrier note overwrites all early notes
#1

title.

so when i use /bdeploy 1 test
it shows BARRIER 1 TEST

and when i do /bdeploy 2 banana
it shows:
BARRIER 1 Tbanana
BARRIER 2 banana

this is my code

PHP код:
COMMAND:bdeploy(playeridparams[])
{
    if(!
IsPlayerFED(playerid)) return SendClientError(playeridCANT_USE_CMD);
    if(
PlayerInfo[playerid][ranklvl] == && PlayerInfo[playerid][authority_bdeploy] != 1) return SendClientError(playeridCANT_USE_CMD);
    if(
PlayerInfo[playerid][ranklvl] > 2) return SendClientError(playeridCANT_USE_CMD);
    new 
bid,roadNote1337[420],kankerzooi[420];
    if( 
sscanf params"ds"bid,roadNote1337)) return SCP(playerid"[barrierID] [NOTE]");
    if(
bid || bid MAX_BARRIERS) return SCP(playerid"ID not found.");
    if(
roadBlockbid ] == 1) return SendClientError(playerid"That roadblock already exists.");
    
roadBlockbid ] = 1;
    new 
Float:XFloat:YFloat:ZFloat:A;
    
GetPlayerPos(playeridXYZ);
    
GetPlayerFacingAngle(playeridA);
    
// CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
    
roadBlockObjbid ] = CreateDynamicObject(978XYZ0.00.0AGetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
    
SetPlayerPos(playeridX-1YZ+2);
    
    
format(kankerzooi,sizeof(kankerzooi),"Barrier %d",bid);
    
roadLabel[bid] = Create3DTextLabel(kankerzooiCOLOR_LIGHTGREYX,Y,Z,10,0,0);
    
Action(playerid"is deploying a road block.");
    
format(roadNote[bid], 420"%s"roadNote1337);
    return 
1;

Reply


Messages In This Thread
Barrier note overwrites all early notes - by justjamie - 06.06.2016, 11:25
Re: Barrier note overwrites all early notes - by Sithis - 06.06.2016, 12:01
Re: Barrier note overwrites all early notes - by justjamie - 07.06.2016, 13:27
Re: Barrier note overwrites all early notes - by Deroxi - 07.06.2016, 15:23
Re: Barrier note overwrites all early notes - by justjamie - 07.06.2016, 21:27

Forum Jump:


Users browsing this thread: 2 Guest(s)