sscanf problem - 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)
+--- Thread: sscanf problem (
/showthread.php?tid=487085)
sscanf problem -
PakPak - 11.01.2014
I've a little problem with sscanf can anyone help me please ?
pawn Код:
new modelid, color1, color2, vehid, str[64];
if(sscanf(params, "ddd", modelid, color1, color2)) return ShowInfoForPlayer(playerid, COLOR_GREY, "USAGE: /creerveh [modele] [couleur1] [couleur2]");
if(modelid < 400 || modelid > 611) return ShowInfoForPlayer(playerid, COLOR_RED, "Modиle invalide!");
if(color1 < 0 || color2 < 0) return ShowInfoForPlayer(playerid, COLOR_RED, "Couleur invalide!");
Код:
C:\Users\Jonathan\Desktop\MyRP\gamemodes\MyRP.pwn(1455) : error 035: argument type mismatch (argument 2)
C:\Users\Jonathan\Desktop\MyRP\gamemodes\MyRP.pwn(1456) : error 035: argument type mismatch (argument 2)
C:\Users\Jonathan\Desktop\MyRP\gamemodes\MyRP.pwn(1457) : error 035: argument type mismatch (argument 2)
Thanks
Re : sscanf problem -
PakPak - 12.01.2014
up please
Re: sscanf problem -
Zamora - 12.01.2014
There is nothing wrong with it, maybe
is the problem?.
Re: sscanf problem -
1FreeHost - 12.01.2014
Something should be wrong if it does not compile.
Re: sscanf problem -
Zamora - 12.01.2014
Quote:
Originally Posted by 1FreeHost
Something should be wrong if it does not compile.
|
Lol
Re : sscanf problem -
PakPak - 12.01.2014
Isn't wrong. This is really strange.
Re: sscanf problem -
Konstantinos - 12.01.2014
The problem is the colours.
COLOR_GREY and
COLOR_RED should be integers and in the function ShowInfoForPlayer, the second parameter should be integer as well.