View Single Post
Old 29/05/2019, 02:08 PM   #6
Gforcez
Gangsta
 
Gforcez's Avatar
 
Join Date: Jul 2010
Location: The Netherlands.
Posts: 762
Reputation: 435
Default Re: Problem with MYSQL

Quote:
Originally Posted by MacGyverr View Post
So all i have to do is put this code in top of the OnPlayerConnect?

PHP Code:
public OnPlayerConnect(playerid){

    
gPlayerInfo[playerid][pAdminLVL] = 51;
    
printf("%d"gPlayerInfo[playerid][pAdminLVL]);
    for(new 
ipBlueprint:pBlueprinti++)
    {
        
gPlayerInfo[playerid][pBlueprint:i] = 0;
    }
    
printf("%d"gPlayerInfo[playerid][pAdminLVL]);


PHP Code:
public OnPlayerConnect(playerid){

    
gPlayerInfo[playerid][pAdminLVL] = 0// Reset the pAdminLVL for playerid

// Here you're already resetting the blueprints
    
for(new ipBlueprint:pBlueprinti++)
    {
        
gPlayerInfo[playerid][pBlueprint:i] = 0;
    }

__________________

Gforcez is offline   Reply With Quote