[HELP]OnPlayerStateChange
#1

hello guys I created dynamic faction cars and everything is okey but this code doesn't work help me please

PHP код:
    if(newstate == 2)
    {
    for(new 
0sizeof(FactionAracBilgi); s++)
    {
     new 
Ara GetPlayerVehicleID(playerid);
    if(
Ara != DFAracSpawn[s])
    {
    if(
PlayerInfo[playerid][pFaction] == FactionAracBilgi[s][dFAracFaction]) return SendClientMessage(playerid,0xFFFFFF,"Bu aracın anahtarları sende yok."),RemovePlayerFromVehicle(playerid);
    }}} 
Reply
#2

Quote:
Originally Posted by Orhun_Kaya
Посмотреть сообщение
hello guys I created dynamic faction cars and everything is okey but this code doesn't work help me please

PHP код:
    if(newstate == 2)
    {
    for(new 
0sizeof(FactionAracBilgi); s++)
    {
     new 
Ara GetPlayerVehicleID(playerid);
    if(
Ara != DFAracSpawn[s])
    {
    if(
PlayerInfo[playerid][pFaction] == FactionAracBilgi[s][dFAracFaction]) return SendClientMessage(playerid,0xFFFFFF,"Bu aracın anahtarları sende yok."),RemovePlayerFromVehicle(playerid);
    }}} 
Test this:

Код:
 
if(newstate == 2) { for(new s = 0; s < sizeof(FactionAracBilgi); s++) { new Ara = GetPlayerVehicleID(playerid); if(Ara != DFAracSpawn[s]) { if(PlayerInfo[playerid][pFaction] == FactionAracBilgi[s][dFAracFaction]) return SendClientMessage(playerid,0xFFFFFF,"Bu aracın anahtarları sende yok.") && RemovePlayerFromVehicle(playerid); }}}
Reply
#3

What's the error?
Reply
#4

Quote:
Originally Posted by gtascripterultimate
Посмотреть сообщение
Test this:

Код:
 
if(newstate == 2) { for(new s = 0; s < sizeof(FactionAracBilgi); s++) { new Ara = GetPlayerVehicleID(playerid); if(Ara != DFAracSpawn[s]) { if(PlayerInfo[playerid][pFaction] == FactionAracBilgi[s][dFAracFaction]) return SendClientMessage(playerid,0xFFFFFF,"Bu aracın anahtarları sende yok.") && RemovePlayerFromVehicle(playerid); }}}
I trying

EDIT: Doesn't work
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)