14.03.2010, 14:22
I am working on a new drug FS and when compiling it i have come across the following errors;
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (201) : error 029: invalid expression, assumed zero
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (201) : error 004: function "OnPlayerCommandText" is not implemented
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : error 017: undefined symbol "cmd"
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : warning 215: expression has no effect
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : warning 215: expression has no effect
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : error 001: expected token: ";", but found ")"
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : error 029: invalid expression, assumed zero
The 201 line is;
And the 211 line is;
It used to be;
but this line brought me 15 errors and when i changed it to the one above i only got 8.
Any help would be much appreciated
It may be because im so tired from scripting all day but i cant seem to find the answer to this one, Thanks guys
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (201) : error 029: invalid expression, assumed zero
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (201) : error 004: function "OnPlayerCommandText" is not implemented
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : error 017: undefined symbol "cmd"
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : warning 215: expression has no effect
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : warning 215: expression has no effect
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : error 001: expected token: ";", but found ")"
D:\Downloads\samp03asvr_R4_win32\Tests\Drugnew.pwn (211) : error 029: invalid expression, assumed zero
The 201 line is;
Код:
public OnPlayerCommandText(playerid, cmdtext[])
Код:
if(strcmp(cmd "/drughelp", true) == 0)
Код:
if(strcmp("/drughelp", cmdtext, true, 10) == 0)
Any help would be much appreciated
It may be because im so tired from scripting all day but i cant seem to find the answer to this one, Thanks guys