Jump to content
  • 0

Ajutor ! !


Converse

Question

[glow=red,2,300]Dupa cum se prea bine vede,sunt un scripter nou si neajutorat

:D . Am 2 intrebari :[/glow]

1.Cum transform fisierul .map in .pwn sau .amx?

2.Am o problema la NRG personale,cand incerc sa le pun in GM . Uitati cum le-am pus :

[pawn]new Converse;[/pawn]

Iar apoi,sub toate celelalte vehicule:

[pawn]Converse = AddStaticVehicle (522,X,Y,Z,culoarea1,culoarea2)[/pawn]

Iar apoi,sa se stie ca e al meu , sub linia

[pawn]public OnPlayerStateChange(playerid, newstate, oldstate)

{[/pawn]

Am adaugat:

[pawn]    if(newstate == PLAYER_STATE_DRIVER)

    {

if(GetPlayerVehicleID(playerid) == Converse)

{

new sendername[MAX_PLAYER_NAME];

GetPlayerName(playerid, sendername, sizeof(sendername));

if(strcmp(sendername,"Converse",true))

{

SendClientMessage(playerid,COLOR_GREY,"Nu te atinge ca iei vopseaua :P");

new Float:cx, Float:cy, Float:cz;

GetPlayerPos(playerid, cx, cy, cz);

SetPlayerPos(playerid, cx,  cy, cz);

}

}[/pawn]

Si imi da 26 erori .. Faza proasta e ca,inainte sa adaug NRG personal,compila no error no warning,iar de cand am bagat,apar 26 erori care nu au nici o legatura cu NRG.Help?!?!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Aici

[pawn] if(newstate == PLAYER_STATE_DRIVER)

    {

if(GetPlayerVehicleID(playerid) == Converse)

{

new sendername[MAX_PLAYER_NAME];

GetPlayerName(playerid, sendername, sizeof(sendername));

if(strcmp(sendername,"Converse",true))

{

SendClientMessage(playerid,COLOR_GREY,"Nu te atinge ca iei vopseaua :P");

new Float:cx, Float:cy, Float:cz;

GetPlayerPos(playerid, cx, cy, cz);

SetPlayerPos(playerid, cx,  cy, cz);

}

}[/pawn]

tu deschizi 3 } si inchizi 2 }

corect este

[pawn] if(newstate == PLAYER_STATE_DRIVER)

    {

if(GetPlayerVehicleID(playerid) == Converse)

{

new sendername[MAX_PLAYER_NAME];

GetPlayerName(playerid, sendername, sizeof(sendername));

if(strcmp(sendername,"Converse",true))

{

SendClientMessage(playerid,COLOR_GREY,"Nu te atinge ca iei vopseaua :P");

new Float:cx, Float:cy, Float:cz;

GetPlayerPos(playerid, cx, cy, cz);

SetPlayerPos(playerid, cx,  cy, cz);

}

}

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.