Issue with variables
#5

well if you create the variables inside callbacks you will not have problems

Quote:

public OnPlayerConnect(playerid)
{
new sql;
}

public OnPlayerDisconnect(playerid, reason)
{
new sql;
}

but if you create a variable anywhere in script then create another one with same name you will get that error again

Quote:

new sql: //top

public OnPlayerConnect(playerid)
{
new sql;//error
}

You should create the variable "sql" at top of script and not create it again on the whole script
Reply


Messages In This Thread
Issue with variables - by Derryd - 24.12.2011, 04:08
Re: Issue with variables - by -Rebel Son- - 24.12.2011, 04:22
Re: Issue with variables - by b.rock - 24.12.2011, 04:24
Re: Issue with variables - by Derryd - 24.12.2011, 04:32
Re: Issue with variables - by b.rock - 24.12.2011, 04:59

Forum Jump:


Users browsing this thread: 1 Guest(s)