Using dcmd
#1

Hi there. I was just trying out using dcmd. This is what I got

http://pawn.pastebin.com/m1ffca9e8

Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(107) : warning 211: possibly unintended assignment
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(140) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(242) : error 017: undefined symbol "id"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(243) : error 017: undefined symbol "id"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(253) : error 017: undefined symbol "id"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(254) : error 017: undefined symbol "id"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Unfortunately, I don't know what I did wrong. I know I didn't define id, but I doubt #define id (something) would do it. As for the Errors at 107 and 140, don't bother fixing 'em. Once I figure this out, I'll be converting 'em to dcmd as well.
Reply
#2

change id to playerid it worked when i done it
Reply
#3

Actually

pawn Код:
#define id playerid
Woud fix it It would fix only the 'id' errors, not the first 2 tho'.

The error 001 seems pretty strange, since there is nothing wrong there :O
Reply
#4

pawn Код:
new id=strval(params);
should fix it, if you define id as playerid then you'll just make a mess of it.
Reply
#5

Quote:
Originally Posted by XtremeChio
The error 001 seems pretty strange, since there is nothing wrong there :O
Don Correlli, this counts for you to:

Look at the line above 140.
Reply
#6

new tmp[128]
tmp = strtok(cmdtext, idx);

should be

new tmp[128];
tmp = strtok(cmdtext, idx);
Reply
#7

Quote:
Originally Posted by Lazarus
Quote:
Originally Posted by XtremeChio
The error 001 seems pretty strange, since there is nothing wrong there :O
Don Correlli, this counts for you to:

Look at the line above 140.
Sorry, didn't saw that error.

Like [MOB]Tr1viUm told you, you forgot ; at the end.
Reply
#8

Quote:
Originally Posted by Don Correlli
pawn Код:
new id=strval(params);
should fix it, if you define id as playerid then you'll just make a mess of it.
Well, this just made my compiler crash, xD
Reply
#9

Why u dont use sscanf?
It is much better than that.
Reply
#10

Quote:
Originally Posted by kavkus
Why u dont use sscanf?
It is much better than that.
Meh, I got to it before you said it, xD. But here are the last of the probs ( I think. )

Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(247) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(248) : error 029: invalid expression, assumed zero
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(270) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Probably something stupid again, :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)