23.01.2011, 08:07
Hi everybody !
i explain you my problem because i can't continue my server whithout repair this problem.
I have many cmd's wich were working. And I made an update and now, they aren't working anymore
.
I explain:
When I was in version 0.3b it worked successfuly and now ( 0.3c ) it doesn't works.
This is so incredible because i didn't change anything.
I give you the pawn codes of two of the cmd's wich doesn't works
This cmd is to teleport to SF and when i do this cmd in game, it tells me " Tйlйportй ! " but nothing happen.
And the second cmd:
This cmd is to get everybody of 100% of health. And when i do this on my server, it tells to everybody: " Un miracle c'est produit,vous guerissez ! " but like the other cmd, nothing happen ( nobody is fully healthed ).
If you kno the answer of my problem, please explain me in easy english because i'm a french boy so sorry for my bad english.
Si vous кtes franзais, rйpondez en franзais si vous connaissez la rйponse.
Have a nice day
Cordialement
i explain you my problem because i can't continue my server whithout repair this problem.
I have many cmd's wich were working. And I made an update and now, they aren't working anymore

I explain:
When I was in version 0.3b it worked successfuly and now ( 0.3c ) it doesn't works.
This is so incredible because i didn't change anything.
I give you the pawn codes of two of the cmd's wich doesn't works
Код:
if(strcmp(cmd, "/tpsf", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 2000) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -1417.0,-295.8,14.1); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, -1417.0,-295.8,14.1); } SendClientMessage(playerid, COLOR_GRAD1, " Tйlйportй !"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } else { SendClientMessage(playerid, COLOR_GRAD1, " Vous n'кtes pas autoriser a utiliser cette commande!"); } } return 1; }
And the second cmd:
Код:
if( strcmp( cmdtext, "/vieall" ) == 0 ) { if (PlayerInfo[playerid][pAdmin] >= 1337) { for( new i = 0; i < MAX_PLAYERS; i++ ) { if( IsPlayerConnected( i ) ) SetPlayerHealth( i, 100.0 ); } SendClientMessageToAll( COLOR_YELLOW, "Un miracle c'est produit,vous guerissez !"); } }
If you kno the answer of my problem, please explain me in easy english because i'm a french boy so sorry for my bad english.
Si vous кtes franзais, rйpondez en franзais si vous connaissez la rйponse.
Have a nice day
Cordialement