23.05.2014, 21:45
Hola, tengo este problema y no entiendo muy bien como va esto:
Codigo:
El error:
Ayuda por favor
Codigo:
Код:
public OnGameModeInit() { dbhandle = mysql_connect("localhost","root","samp","******"); } public OnGameModeExit() { mysql_close(); return 1; } public OnPlayerConnect(playerid) new query[512]; GetPlayerName(playerid,name,sizeof(name)); format(query,sizeof(query),"INSERT INTO usuarios (name,skin,moeny) VALUES ('%s','%s','%s') ",name,GetPlayerSkin(playerid),GetPlayerMoney(playerid)); mysql_function_query(dbhandle,query,false,"",""); return 1; }
Код:
C:\Users\root\Desktop\MyPawno\mysql.pwn(54) : error 003: declaration of a local variable must appear in a compound block C:\Users\root\Desktop\MyPawno\mysql.pwn(58) : error 010: invalid function or declaration C:\Users\root\Desktop\MyPawno\mysql.pwn(39) : warning 204: symbol is assigned a value that is never used: "dbhandle" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.