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(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;
}
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