help cmd not showing cp
#1

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;

Reply
#2

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

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?
Reply
#4

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

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

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
Reply
#7

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

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
Reply
#9

ay 5od3a a 7abiby
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)