fytza Posted May 11, 2014 Report Share Posted May 11, 2014 Nick:fytza Problema: Nu detin permisul de conducere ma duc la checkpoint si cand dai /examen zice ca deja dai testulErori / warnings:-Lini/script:[pawn] if(strcmp(cmd, "/examen", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerCash(playerid) >= 5000) { if(PlayerData[playerid][pCarLic] == 0 || PlayerData[playerid][pCarLic] > 2) { if(PlayerToPoint(3.0,playerid,1730.5081,-2238.4375,13.5423)) { if(DMVPrepare[playerid] == 0) { DMVPrepare[playerid] = 1; DMVlocation[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !"); } } } else { SendClientMessage(playerid,COLOR_GREY,"Deja ai licenta de sofer !" ); } } else { SendClientMessage(playerid,COLOR_GREY,"Nu ai bani pentru a da testul !"); } } return 1; } [/pawn]Ai incercat sa rezolvi singur ?:da. Link to comment Share on other sites More sharing options...
WopsS Posted May 11, 2014 Report Share Posted May 11, 2014 Scoate [pawn]|| PlayerData[playerid][pCarLic] > 2[/pawn] Link to comment Share on other sites More sharing options...
fytza Posted May 11, 2014 Author Report Share Posted May 11, 2014 am scos dar tot asa zice! sau cum fac cand da /examen sa ii dea licenta direct! sa numai dea testul sa ii dea licenta! Link to comment Share on other sites More sharing options...
WopsS Posted May 11, 2014 Report Share Posted May 11, 2014 Inlocuiesti [pawn] if(PlayerToPoint(3.0,playerid,1730.5081,-2238.4375,13.5423)) { if(DMVPrepare[playerid] == 0) { DMVPrepare[playerid] = 1; DMVlocation[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !"); } }[/pawn] cu [pawn]PlayerInfo[playerid][pCarLic] = 1;[/pawn] Link to comment Share on other sites More sharing options...
Ph0eniX Posted May 12, 2014 Report Share Posted May 12, 2014 T/C. Topic Solved. public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; } Link to comment Share on other sites More sharing options...
Question
fytza
Nick:fytza
Problema: Nu detin permisul de conducere ma duc la checkpoint si cand dai /examen zice ca deja dai testul
Erori / warnings:-
Lini/script:
[pawn] if(strcmp(cmd, "/examen", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerCash(playerid) >= 5000)
{
if(PlayerData[playerid][pCarLic] == 0 || PlayerData[playerid][pCarLic] > 2)
{
if(PlayerToPoint(3.0,playerid,1730.5081,-2238.4375,13.5423))
{
if(DMVPrepare[playerid] == 0)
{
DMVPrepare[playerid] = 1;
DMVlocation[playerid] = 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Deja ai licenta de sofer !" );
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Nu ai bani pentru a da testul !");
}
}
return 1;
} [/pawn]
Ai incercat sa rezolvi singur ?:da.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts