sscanf problem
#1

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
Reply
#2

up please
Reply
#3

There is nothing wrong with it, maybe
pawn Код:
ShowInfoForPlayer
is the problem?.
Reply
#4

Something should be wrong if it does not compile.
Reply
#5

Quote:
Originally Posted by 1FreeHost
Посмотреть сообщение
Something should be wrong if it does not compile.
Lol
Reply
#6

Код:
ShowInfoForPlayer
Isn't wrong. This is really strange.
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)