Szerző Téma: Hogyan lehet? (elfelejtetem:S)  (Megtekintve 627 alkalommal)

Hogyan lehet? (elfelejtetem:S)
« Dátum: 2010. Május 18. - 18:50:53 »
0
Helló all. Mi annak a parancsa hogy teleport nál ha valaki eltelézeik LV be akkor kirja pl hogy : %s eltelézett LV-be(/lv). De ugy hogy ezt midnenki lássa.am azért nem tudom mert elfelejtettem és nem jut az eszembe:S valami ilyesmi szerintem:
 
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), \"%s szöveg\", pName);
SendClientMessageToAll(0x993300AA, string);
return 1;
}

 
Ha nem javítsatok pls;)
D@nee

Nem elérhető Depi

  • 2259
  • Még mindig TrYp. :)
    • Profil megtekintése
Hogyan lehet? (elfelejtetem:S)
« Válasz #1 Dátum: 2010. Május 18. - 18:52:02 »
0
new pName[ 24 ];

Hogyan lehet? (elfelejtetem:S)
« Válasz #2 Dátum: 2010. Május 18. - 18:56:08 »
0
Aha kösz:) nah akkor meg is csinem még 1x köszi:D

Hogyan lehet? (elfelejtetem:S)
« Válasz #3 Dátum: 2010. Május 18. - 19:44:58 »
0
Valami gond van:S
itt vannak a hibák:
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(235) : warning 219: local variable \"pName\" shadows a variable at a preceding level
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(247) : warning 219: local variable \"pName\" shadows a variable at a preceding level
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(272) : error 017: undefined symbol \"strtok\"
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(272) : error 033: array must be indexed (variable \"cmd\")
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(287) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(303) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(309) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(315) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(330) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(339) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(352) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(362) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(372) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(379) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(386) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(393) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(409) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(425) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(432) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(438) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(449) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(453) : error 004: function \"SendPlayerFormattedText\" is not implemented
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(454) : error 004: function \"SendPlayerFormattedText\" is not implemented
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(455) : error 004: function \"SendPlayerFormattedText\" is not implemented
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(456) : error 004: function \"SendPlayerFormattedText\" is not implemented
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(457) : error 004: function \"SendPlayerFormattedText\" is not implemented
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(458) : error 079: inconsistent return types (array & non-array)
C:\\Program Files\\Rockstar Games\\stunt_mod.pwn(463) : error 079: inconsistent return types (array & non-array)
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
26 Errors.

 
erre a telére igy:
 
if(strcmp(cmd, \"/jump\", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
new Float:X;
new Float:Y;
new Float:Z;
new VehicleID;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,1532.2787,-1357.2721,329.4535);
} else {
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid,1532.2787,-1357.2721,329.4535);
GivePlayerWeapon(playerid, 46, 200);
format(string, sizeof(string), \"%s A Los Santosi Ugró torony-ra teleportált.(/jump)\", pName);
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}

 
Mi lehet a baj?:S

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal