symbol already defined: "SendCommand"
#1

i get this error :S symbol already defined: "SendCommand"
Reply
#2

Well....It means it's already defined.
Reply
#3

Quote:
Originally Posted by Backwardsman97
Посмотреть сообщение
Well....It means it's already defined.
How?, its a function :S, this is my NPC Script:

pawn Код:
#define RECORDING "REC1"
#define RECORDING_TYPE 2

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
    public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback();
#else
    //public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    SendCommand("/crack");
#endif
Reply
#4

sorry to bump this, but i rly want it to be fixed now :/
Reply
#5

Your issue isn't more important than anyone else's issue on this forum. Go read the forum rules and stop breaking the rules!
Reply
#6

omg i hate this, im waiting 30 minutes and i still have no answer >=[, it sais 47 people vieuwing!, how can i have to wait 30 min then? -.-

This is why people go to MTA :@
Reply
#7

Quote:
Originally Posted by DaneAMattie
Посмотреть сообщение
omg i hate this, im waiting 30 minutes and i still have no answer >=[, it sais 47 people vieuwing!, how can i have to wait 30 min then? -.-

This is why people go to MTA :@
If you like MTA so much, then get out of here. You should learn to spell and use correct English grammar, on top of that you should realize 75% of this forum is just noob after noob. Most of them don't know how to solve your issue, or don't give a shit about it.
Reply
#8

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
If you like MTA so much, then get out of here. You should learn to spell and use correct English grammar, on top of that you should realize 75% of this forum is just noob after noob. Most of them don't know how to solve your issue, or don't give a shit about it.
yea and that should be fixed, i dont like MTA, im sticking to SAMP Because im fan of samp, but if i have to be fair this forum SUCKS
Reply
#9

Quote:
Originally Posted by DaneAMattie
Посмотреть сообщение
yea and that should be fixed, i dont like MTA, im sticking to SAMP Because im fan of samp, but if i have to be fair this forum SUCKS
Okay, First of all 30 minutes is nothing. There is people that waits 5 days or even 10 days to get a answer.
And about the "this is why people goes to MTA", literally SA:MP has more members.
Now to your question that as i see want to get answered as soon as possible.
we will need to check the SendCommand function to solve this but this means there is 2 declarations of SendCommand. If i'm right ovbiously, we need to check the command.
Reply
#10

Try add at top (under include's)
pawn Код:
#undef SendCommand
Reply
#11

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
Try add at top (under include's)
pawn Код:
#undef SendCommand
3 errors now:
pawn Код:
*\NPC1.pwn(1) : error 017: undefined symbol "SendCommand"
*\NPC1.pwn(1) : error 010: invalid function or declaration
*\NPC1.pwn(14) : error 021: symbol already defined: "SendCommand"
Reply
#12

Quote:
Originally Posted by DaneAMattie
Посмотреть сообщение
3 errors now:
pawn Код:
*\NPC1.pwn(1) : error 017: undefined symbol "SendCommand"
*\NPC1.pwn(1) : error 010: invalid function or declaration
*\NPC1.pwn(14) : error 021: symbol already defined: "SendCommand"
Put "#undef SendComment" AFTER your includes. (#include <a_samp>, etc).
Reply
#13

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Put "#undef SendComment" AFTER your includes. (#include <a_samp>, etc).
That isnt fixing it :/
Reply
#14

SendCommand
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)