SkyLzo98 Posted January 1, 2014 Report Share Posted January 1, 2014 Am nevoie de ajutor, normal ar trebui sa ma lase sa intru in masina, dar ma scoate afara spunandumi ca nu sunt eu ownerul masinii[pawn]#include <a_samp>new SkyLzo98;public OnGameModeInit() SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0); return 1;}public OnPlayerStateChange(playerid, newstate, oldstate){ if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(strcmp(name, "SkyLzo98", false)) SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98"); { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0x281aeb, "Aceasta masina nu iti apartine!Apartine lui SkyLzo98"); } } return 1;}[/pawn] Daca vreti sa vorbim add skype: skilzo98 Link to comment Share on other sites More sharing options...
Iulian Posted January 1, 2014 Report Share Posted January 1, 2014 [pawn]#include <a_samp>new SkyLzo98;public OnGameModeInit() SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0); return 1;}public OnPlayerStateChange(playerid, newstate, oldstate){ if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(strcmp(name, "SkyLzo98", false)) { SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98"); } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0x281aeb, "Aceasta masina nu iti apartine!Apartine lui SkyLzo98"); } } return 1;}[/pawn] Rate me Link to comment Share on other sites More sharing options...
SkyLzo98 Posted January 1, 2014 Author Report Share Posted January 1, 2014 Da, am facut cum zici tu dar zice :(5) : error 010: invalid function or declarationDoar cum am facut eu se compila fara eroare. Daca vreti sa vorbim add skype: skilzo98 Link to comment Share on other sites More sharing options...
Iulian Posted January 1, 2014 Report Share Posted January 1, 2014 [pawn]#include <a_samp>new SkyLzo98;public OnGameModeInit() SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0); return 1;}public OnPlayerStateChange(playerid, newstate, oldstate){ if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(!strcmp(name, "SkyLzo98", false)) return RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98"); return 1; } return 1;}[/pawn] Rate me Link to comment Share on other sites More sharing options...
SkyLzo98 Posted January 2, 2014 Author Report Share Posted January 2, 2014 Tot imi da niste erori.. ( Daca vreti sa vorbim add skype: skilzo98 Link to comment Share on other sites More sharing options...
SkyLzo98 Posted January 2, 2014 Author Report Share Posted January 2, 2014 Am incercat si asa, tot primesc eroare Daca vreti sa vorbim add skype: skilzo98 Link to comment Share on other sites More sharing options...
Grig Posted January 2, 2014 Report Share Posted January 2, 2014 [pawn]#include <a_samp>new SkyLzo98;public OnGameModeInit(){ SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0); return 1;}public OnPlayerStateChange(playerid, newstate, oldstate){ if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(!strcmp(name, "SkyLzo98", false)) return RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98"); return 1; } return 1;}[/pawn] Link to comment Share on other sites More sharing options...
Джо Posted January 3, 2014 Report Share Posted January 3, 2014 Am incercat si asa, tot primesc eroareSalut,ce erori iti da? Link to comment Share on other sites More sharing options...
Question
SkyLzo98
Am nevoie de ajutor, normal ar trebui sa ma lase sa intru in masina, dar ma scoate afara spunandumi ca nu sunt eu ownerul masinii
[pawn]#include <a_samp>
new SkyLzo98;
public OnGameModeInit()
SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "SkyLzo98", false))
SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98");
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x281aeb, "Aceasta masina nu iti apartine!Apartine lui SkyLzo98");
}
}
return 1;
}
[/pawn]
Daca vreti sa vorbim add skype: skilzo98
Link to comment
Share on other sites
7 answers to this question
Recommended Posts