Problem with a loop
#3

Код:
public OnPlayerSpawn(playerid)
{
    StopAudioStreamForPlayer(playerid);
    print("Did this A");
    if(pInfo[playerid][isCustomized] == false)
    {
        StartPlayerCustomization(playerid);
        print("Did this B");
    }
    else if(pInfo[playerid][isCustomized])
    {
        //SetPlayerPos(playerid, Shelter_Spawn);
        SendClientMessage(playerid, -1, "Modificado");
        print("Did this C");
        return 1;
    }
    for(new j; j < MAX_HOME_TDS; j++) PlayerTextDrawHide(playerid, homescr[j][playerid]); print("Did this D");
    return 1;
}
Now it only prints "A", but it stills executes the "StartPlayerCustomization", without printing it though.
Reply


Messages In This Thread
Problem with a loop - by redneckvideogamer - 23.02.2014, 14:25
Re: Problem with a loop - by MP2 - 23.02.2014, 14:46
Re: Problem with a loop - by redneckvideogamer - 23.02.2014, 14:51
Re: Problem with a loop - by MP2 - 23.02.2014, 16:11

Forum Jump:


Users browsing this thread: 2 Guest(s)