22.05.2015, 22:30
Guys look,that is the problem,and i started to understand how to code pawn finally ,that helped me to figure the problem to explain it : first this is the code which i made -note: the- x,y,z are a fake coordinites,don't belive them-
That looks good,but the problem when i just do that,i get an error of undefined symbols : a,b
so i typed in the top of my script : new a = 0; , b = 102; Now here is the problem:
Finally when i tested my server,I found that the script reads the Addplayerclass(a or b) as a skins
so i only get skin 0 CJ ,and skin 102 one of the ballas.
Any ideas?
pawn Код:
for (new a = 0; a <= 311; a++) switch(a)
{
case 0..279, 289..299:
AddPlayerClass(a, 2485.6213,-1665.0665,15, -1, 0, 0, 0, 0, 0, 0);
default:
}
for (new b = 102; b <= 102; b++) switch(b)
{
case 280..288, 300..311
AddPlayerClass(b, 21202, 212151, 21215, 15, -1, 0, 0, 0, 0 , 0, 0);
default:
}
so i typed in the top of my script : new a = 0; , b = 102; Now here is the problem:
Finally when i tested my server,I found that the script reads the Addplayerclass(a or b) as a skins
so i only get skin 0 CJ ,and skin 102 one of the ballas.
Any ideas?