SA-MP Forums Archive
Cant divorce :O - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cant divorce :O (/showthread.php?tid=71303)



Cant divorce :O - Robbin237 - 31.03.2009


EDIT: I was being stupid again, it was another piece of fucking code, ty.

Hi guys,
Im making a script to let the user enter a number, like 10. Then it will get all 10 numbers in the amount the user gave.
The problem is when i do NumberRange - 9 or anything else, i get these errors.

pawn Код:
D:\_Spellen\bkp\filterscripts\dceros.pwn(36) : error 027: invalid character constant
D:\_Spellen\bkp\filterscripts\dceros.pwn(36) : error 027: invalid character constant
This is my code:

pawn Код:
new NumberRange = 10;
    new NUM[9];

    printf("NumberRange = %d", NumberRange);
    printf("NumberRange - 9 = %d", NumberRange - 9);
   
    NUM[0] = NumberRange - 9; // Het eerste getal
    NUM[1] = NumberRange - 8; // Het tweede getal
    NUM[2] = NumberRange - 7; // Het derde getal
    NUM[3] = NumberRange - 6; // Het vierde getal
    NUM[4] = NumberRange - 5; // Het vijfde getal
    NUM[5] = NumberRange - 4; // Het zesde getal
    NUM[6] = NumberRange - 3; // Het zevende getal
    NUM[7] = NumberRange - 2; // Het achtste getal
    NUM[8] = NumberRange - 1; // Het negende getal
Can somebody help me please?
Thnx!


Re: Cant divorce :O - ICECOLDKILLAK8 - 31.03.2009

Explain what your trying to do in more detail


Re: Cant divorce :O - Klutty - 31.03.2009

I rofl'd at the topic name "Cant divorce :O"