PDA

View Full Version : sscanf2 problem


alekschowee
11/07/2016, 09:44 PM
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(43) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(46) : error 017: undefined symbol "GetMaxPlayers"
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(46) : error 029: invalid expression, assumed zero
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(46) : warning 215: expression has no effect
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(47) : error 017: undefined symbol "funcidx"
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(47) : warning 215: expression has no effect
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(47) : error 001: expected token: ";", but found ")"
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(47) : error 029: invalid expression, assumed zero
C:\Users\ASUS\Desktop\آربطتخ\minch\pawno\include\s scanf2.inc(47) : fatal error 107: too many error messages on one line

Vince
11/07/2016, 09:45 PM
Include a_samp first.

alekschowee
11/07/2016, 09:49 PM
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(719) : warning 217: loose indentation
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3727) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3727) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3726) : warning 203: symbol is never used: "idx"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3746) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3746) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3745) : warning 203: symbol is never used: "idx"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3765) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3765) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3764) : warning 203: symbol is never used: "idx"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3784) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3784) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3783) : warning 203: symbol is never used: "idx"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3803) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3803) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3802) : warning 203: symbol is never used: "idx"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3846) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3846) : error 033: array must be indexed (variable "cmd")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3962) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3962) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3976) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(3976) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4394) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4394) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4441) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4441) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4639) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4639) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4739) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4739) : error 033: array must be indexed (variable "tmp")
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4748) : error 017: undefined symbol "strtok"
C:\Users\ASUS\Desktop\آربطتخ\minch\gamemodes\gangw ars4.pwn(4748) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

TakeiT
11/07/2016, 09:58 PM
add the STRTOK function to your script somewhere.

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

I don't recommend using OnPlayerCommandText w/ strtok, however.