SA-MP Forums Archive
help cmd not showing cp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help cmd not showing cp (/showthread.php?tid=559424)



help cmd not showing cp - astanalol - 23.01.2015

hello guys
i have problem the CMD not showing the Checkpoints when i type 1 or 2
help please +reps
PHP код:
CMD:createhouse(playeridparams[])
{
    new 
type[24],interior;
    new 
Float:xFloat:yFloat:z;
    if(
sscanf(params,"is[24]"interiortype)) return SendClientMessage(playerid, -1"/createhouse [1~2][type]");
    if(
interior 2SendClientMessage(playerid, -1"Invaild Interior ID");
    
GetPlayerPos(playeridxyz);
    if(!
strcmp("enter",typetrue))
    {
        if(
interior == 1)
        {
            
house1Ent CreateDynamicCPx,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
        else if(
interior == 2)
        {
            
house2Ent CreateDynamicCP(x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
    }
    if(!
strcmp("exit",typetrue))
    {
        if(
interior == 1)
        {
            
house1Exit CreateDynamicCPx,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
        else if(
interior == 2)
        {
            
house2Exit CreateDynamicCP(x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
    }
    return 
1;




Re: help cmd not showing cp - nezo2001 - 23.01.2015

Why you aren't scripting with zcmd it is more easier than this


Re: help cmd not showing cp - Ciarannn - 23.01.2015

Quote:
Originally Posted by astanalol
Посмотреть сообщение
hello guys
i have problem the CMD not showing the Checkpoints when i type 1 or 2
help please +reps
pawn Код:
CMD:createhouse(playerid, params[])
{
    new type[24],interior;
    new Float:x, Float:y, Float:z;
    if(sscanf(params,"is[24]", interior, type)) return SendClientMessage(playerid, -1, "/createhouse [1~2][type]");
    if(interior > 2) SendClientMessage(playerid, -1, "Invaild Interior ID");
    GetPlayerPos(playerid, x, y, z);
    if(!strcmp("enter",type, true))
    {
        if(interior == 1)
        {
            house1Ent = CreateDynamicCP( x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
        else if(interior == 2)
        {
            house2Ent = CreateDynamicCP(x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
    }
    if(!strcmp("exit",type, true))
    {
        if(interior == 1)
        {
            house1Exit = CreateDynamicCP( x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
        else if(interior == 2)
        {
            house2Exit = CreateDynamicCP(x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
        }
    }
    return 1;
}
What is this code even doing? It starts of with a command to /createhouse but then has another command inside to /enter?

..and when you do /enter it create a checkpoint for you?


Re: help cmd not showing cp - astanalol - 23.01.2015

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
Why you aren't scripting with zcmd it is more easier than this
mosh fahmak


Re: help cmd not showing cp - nezo2001 - 23.01.2015

el tri2a deh s3ba w zbala mn el a5r asht8l b el zcmd 3lshan t3ml commands w ba3dieen 2eeh el 2nta 3amlo dah


Re: help cmd not showing cp - astanalol - 23.01.2015

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
el tri2a deh s3ba w zbala mn el a5r asht8l b el zcmd 3lshan t3ml commands w ba3dieen 2eeh el 2nta 3amlo dah
lesa bt3lm we b7ot aly bafhmo > aly 3agbny


Re: help cmd not showing cp - nezo2001 - 23.01.2015

la2 bs ma3tkdsh 2n ynf3 t3ml kda 5leeha 1 w 2 bardo blash enter w exit deh


Re: help cmd not showing cp - astanalol - 23.01.2015

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
la2 bs ma3tkdsh 2n ynf3 t3ml kda 5leeha 1 w 2 bardo blash enter w exit deh
ana meth2ly 3amltha fix
anta 7opy <3


Re: help cmd not showing cp - nezo2001 - 23.01.2015

ay 5od3a a 7abiby