How to make a loop ...
#6

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-

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:
   }
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?
Reply


Messages In This Thread
How to make a loop ... - by 7Ahmad7 - 22.05.2015, 13:47
Re: How to make a loop ... - by Matess - 22.05.2015, 14:36
Respuesta: How to make a loop ... - by alexus - 22.05.2015, 19:04
Re: How to make a loop ... - by 7Ahmad7 - 22.05.2015, 21:57
Re: Respuesta: How to make a loop ... - by Crayder - 22.05.2015, 22:06
Re: How to make a loop ... - by 7Ahmad7 - 22.05.2015, 22:30
Re: How to make a loop ... - by Crayder - 22.05.2015, 23:36
Re: How to make a loop ... - by 7Ahmad7 - 22.05.2015, 23:52
Re: How to make a loop ... - by Crayder - 22.05.2015, 23:56
Re: How to make a loop ... - by 7Ahmad7 - 23.05.2015, 00:07

Forum Jump:


Users browsing this thread: 1 Guest(s)