View Single Post
Old 25/02/2015, 09:35 PM   #1
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 9
Default small problem - formating

This is the Line 701 that shows errors.
PHP Code:
format(FactionInfo[id][fName],sizeof(FactionInfo[id][fName]),fname); 
I tried also:
PHP Code:
format(FactionInfo[id][fName],sizeof(FactionInfo[id][fName]),"%s",fname); 
but same error message.

Quote:
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 701) : error 001: expected token: "]", but found "-identifier-"
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 701) : warning 215: expression has no effect
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 701) : error 001: expected token: ";", but found "]"
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 701) : error 029: invalid expression, assumed zero
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 701) : fatal error 107: too many error messages on one line

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


4 Errors.
Knowing that fname is going to be inserted.

PHP Code:
new txt,fname[28], typevworldFloat:XiFloat:YiFloat:Ziinti;
    if(
sscanf(params"s[28]ddfffd"fnametypeintiXiYiZitxt)) 
__________________
Alvin007 is offline   Reply With Quote