2 pawno errors, please help!
#1

I was creating objects


#include <a_samp>

CreateObject(3092, -2416.295166, -637.879089, 134.183807, 0.000000, 0.000000, 0.000000);
CreateObject(1575, -2415.827636, -636.444396, 131.802444, 0.000000, 0.000000, 0.000000);
CreateObject(1574, -2425.083251, -587.151123, 131.763397, 0.000000, 0.000000, 0.000000);
CreateObject(1216, -2421.334960, -599.290710, 132.276123, 0.000000, 0.000000, 0.000000);
CreateObject(2780, -2452.437255, -522.227416, 112.688064, 0.000000, 0.000000, 0.000000);
CreateObject(2780, -2464.856445, -525.843078, 112.822731, 0.000000, 0.000000, 0.000000);

#endif




and I had this 2 errors:

error 021: symbol already defined: "CreateObject"
error 026: no matching "#if..."


please help


Reply
#2

Quote:
Originally Posted by Seif_
Remove #endif.
I had the same error!
Reply
#3

got it, but the Error 021 is still there! how to fix it?
Reply
#4

what do you mean? do I seperate it somehow or what? can you show me example out of those codes that i already made?
Reply
#5

because I don't really get you, how am I suppose to do this?
Reply
#6

I got it, but now I can't end it >_< , it says error 030: compound statement not closed at the end of file (started at line 6)

so how to end it?
Reply
#7

Quote:
Originally Posted by DrugZ
I got it, but now I can't end it >_< , it says error 030: compound statement not closed at the end of file (started at line 6)

so how to end it?



you end it with } not )
Reply
#8

is the CreateObject Under OnGameModeInIt?
Reply
#9

Yes it is, I forgot about it
Reply
#10

The Error is you shit scripter xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)