Using dcmd - 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: Using dcmd (
/showthread.php?tid=91767)
Using dcmd -
ilikepie2221 - 16.08.2009
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.
Re: Using dcmd -
soldierman - 16.08.2009
change id to playerid it worked when i done it
Re: Using dcmd -
XtremeChio - 16.08.2009
Actually
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
Re: Using dcmd -
Correlli - 16.08.2009
should fix it, if you define id as playerid then you'll just make a mess of it.
Re: Using dcmd -
Lazarus - 16.08.2009
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.
Re: Using dcmd -
Tr1viUm - 16.08.2009
new tmp[128]
tmp = strtok(cmdtext, idx);
should be
new tmp[128];
tmp = strtok(cmdtext, idx);
Re: Using dcmd -
Correlli - 16.08.2009
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.
Re: Using dcmd -
ilikepie2221 - 16.08.2009
Quote:
Originally Posted by Don Correlli
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
Re: Using dcmd -
kavkus - 16.08.2009
Why u dont use sscanf?
It is much better than that.
Re: Using dcmd -
ilikepie2221 - 17.08.2009
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