some mysql code problems
#1

i'm trying to put a mysql reg system into my GM but i'm getting some warnings. and 2 errors. maybe somebody with a better eye for this stuff can see what i got wrong here.

here's my GM. http://the-mec.pastebin.com/fYS1xwG3

here's the compiler errors/warnings:
Код:
pwn(239 -- 240) : warning 202: number of arguments does not match definition
pwn(239 -- 241) : warning 202: number of arguments does not match definition
pwn(239 -- 242) : warning 202: number of arguments does not match definition
pwn(239 -- 243) : warning 202: number of arguments does not match definition
pwn(239 -- 244) : warning 202: number of arguments does not match definition
pwn(239 -- 244) : error 001: expected token: ",", but found ";"
pwn(319 -- 320) : warning 202: number of arguments does not match definition
pwn(319 -- 321) : warning 202: number of arguments does not match definition
pwn(319 -- 322) : warning 202: number of arguments does not match definition
pwn(319 -- 323) : warning 202: number of arguments does not match definition
pwn(319 -- 323) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

2 Errors.
Reply
#2

pawn Код:
SetPVarInt(playerid, "VIP", data2[0], //Sets Pvar ints
                                   SetPVarInt(playerid, "Kills", data2[0]), //Sets Pvar ints
                   SetPVarInt(playerid, "Logged", 1), //Sets Pvar ints
                   SetPVarInt(playerid, "Deaths", data2[1]), //Sets Pvar ints
                   SetPlayerScore(playerid, data2[2]),
Should be

pawn Код:
SetPVarInt(playerid, "VIP", data2[0]); //Sets Pvar ints
                                   SetPVarInt(playerid, "Kills", data2[0]); //Sets Pvar ints
                   SetPVarInt(playerid, "Logged", 1); //Sets Pvar ints
                   SetPVarInt(playerid, "Deaths", data2[1]); //Sets Pvar ints
                   SetPlayerScore(playerid, data2[2]); //Set
Fix the second part, comparing to this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)