25.12.2013, 12:44
I put this new randomnum = random(100) + 1;
And when i put like this: CreateCompany( GetFreeCompanySlot( ), X, Y, Z, PlayerInfoEx[ playerid ][ CompanyToEdit_STYLE ], randomnum, PlayerInfoEx[ playerid ][ CompanyToEdit_PRICE ] );
I create the Compani and i cant see label and text, i can see it on 2 second after that it destroy it.
But when i put GetPlayerVirtualWorld(); it works...
And when i put like this: CreateCompany( GetFreeCompanySlot( ), X, Y, Z, PlayerInfoEx[ playerid ][ CompanyToEdit_STYLE ], randomnum, PlayerInfoEx[ playerid ][ CompanyToEdit_PRICE ] );
I create the Compani and i cant see label and text, i can see it on 2 second after that it destroy it.
But when i put GetPlayerVirtualWorld(); it works...