24.12.2011, 04:59
well if you create the variables inside callbacks you will not have problems
but if you create a variable anywhere in script then create another one with same name you will get that error again
You should create the variable "sql" at top of script and not create it again on the whole script
Quote:
public OnPlayerConnect(playerid) { new sql; } public OnPlayerDisconnect(playerid, reason) { new sql; } |
Quote:
new sql: //top public OnPlayerConnect(playerid) { new sql;//error } |