sicher das es Reallife ist? vll. Rechtschreibfehler, oder reallife, oder was auch immer!
Beiträge von samtey
-
-
Hallo? Kannste lesen? Guck' und check doch auch mal, was ich geschrieben hab!
-
Lol, deine gamemode Reallife.amx existiert nicht!! Vll. haste sie umbenannt? Oder du hast sie NICHT in deinem folder Gamemodes...Check alles mal aus!
@g3neration
-
Kann mir keiner helfen?
-
Also nur else anstatt else if? Oder wie, check ich nicht?
Bevor jedes else if endet ein return 0; ? -
LOL, hab' vergessen zu posten, dass ich es schon lange gefixt habe^^ sry...
public OnPlayerRequestClass(playerid, classid)
{
if(gFirstTimeHasJoined[playerid]) return SetPlayerSpawn(playerid);
PlayerPlaySound(playerid, 1068 , 0.0, 0.0, 0.0);
if( (classid == 0 || classid == 1 || classid == 2) && (gPlayerSkinForEver[playerid] == 102 || gPlayerSkinForEver[playerid] == 103 || gPlayerSkinForEver[playerid] == 104))
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerPos(playerid, 1992.1263,-1175.7640,20.1479);
SetPlayerFacingAngle( playerid, 187.0574 );
SetPlayerCameraPos(playerid, 1991.3074,-1179.9628,20.0234);
SetPlayerCameraLookAt(playerid, 1992.1263,-1175.7640,20.1479);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Ballas", 3000, 3);
}
else if( (classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid == 8 || classid == 9) && (gPlayerSkinForEver[playerid] == 269 || gPlayerSkinForEver[playerid] == 271 || gPlayerSkinForEver[playerid] == 270 || gPlayerSkinForEver[playerid] == 0 || gPlayerSkinForEver[playerid] == 105 || gPlayerSkinForEver[playerid] == 106 || gPlayerSkinForEver[playerid] == 107))
{ SetPlayerPos(playerid, 2486.7598,-1647.5186,14.0703);
SetPlayerFacingAngle( playerid, 187.5500 );
SetPlayerCameraPos(playerid, 2486.4346,-1646.0953-5,14.0703);
SetPlayerCameraLookAt(playerid, 2486.7598,-1647.5186,14.0703);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Grove Street", 3000, 3);
}
else if( (classid == 10 || classid == 11 || classid == 12) && (gPlayerSkinForEver[playerid] == 108 || gPlayerSkinForEver[playerid] == 109 || gPlayerSkinForEver[playerid] == 110))
{ SetPlayerPos(playerid, 2571.8352,-1091.2091,66.9639);
SetPlayerFacingAngle(playerid, 48.7203 );
SetPlayerCameraPos(playerid, 2570.1152,-1089.5372,66.8601);
SetPlayerCameraLookAt(playerid, 2571.8352,-1091.2091,66.9639);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Vagos", 3000, 3);
}return 0;
}Stimmts?
-
Was zum Teufel soll man ohne die Zeilen anfangen???
-
Keine Hilfe?
Hab' einen Error:
CodeD:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(115) : error 001: expected token: "-string end-", but found "-identifier-" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
Hier die Linie!
format(str,128,"System: %s [ID %d] has set %s [ID %d] gangsterlevel to %i%s",adminname, playerid, gangstername, id, gangsterlevel,((gangsterlevel >= 100) ? "(GODFATHER)" : "") );
Ich will dieses GODFATHER und gangsterlevel >= 100 nicht haben, und weiss irgendjemand wie ich das mit den Respektpunkten tun soll?
-
4 Errors!
CodeD:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(301) : error 014: invalid statement; not in switch D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(301) : warning 215: expression has no effect D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(301) : error 001: expected token: ";", but found ".." D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(301) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(301) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
public OnPlayerRequestClass(playerid, classid) {
if(gFirstTimeHasJoined[playerid]) return SetPlayerSpawn(playerid);
PlayerPlaySound(playerid, 1068 , 0.0, 0.0, 0.0);
if( (classid == 0 || classid == 1 || classid == 2) && (gPlayerSkinForEver[playerid] == 102 || gPlayerSkinForEver[playerid] == 103 || gPlayerSkinForEver[playerid] == 104))SetPlayerTeamFromClass(playerid, classid);
SetPlayerPos(playerid, 1992.1263,-1175.7640,20.1479);
SetPlayerFacingAngle( playerid, 187.0574 );
SetPlayerCameraPos(playerid, 1991.3074,-1179.9628,20.0234);
SetPlayerCameraLookAt(playerid, 1992.1263,-1175.7640,20.1479);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Ballas", 3000, 3);
} case 3..9: {
SetPlayerPos(playerid, 2486.7598,-1647.5186,14.0703);
SetPlayerFacingAngle( playerid, 187.5500 );
SetPlayerCameraPos(playerid, 2486.4346,-1646.0953-5,14.0703);
SetPlayerCameraLookAt(playerid, 2486.7598,-1647.5186,14.0703);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Grove Street", 3000, 3);
} case 10..12: {
SetPlayerPos(playerid, 2571.8352,-1091.2091,66.9639);
SetPlayerFacingAngle(playerid, 48.7203 );
SetPlayerCameraPos(playerid, 2570.1152,-1089.5372,66.8601);
SetPlayerCameraLookAt(playerid, 2571.8352,-1091.2091,66.9639);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Vagos", 3000, 3);
}
}
return 1;
} -
Check' mal das! Ueberschreib das auf dein strcmp, hab' es etwas veraendert:
if(strcmp("/stats", cmdtext, true, 6) == 0)
Warum hattest du nach true 10 geschrieben? /stats ist nur 6 chars^^
-
Versteh ich nicht!
-
Wie meinst das? Mit abspeichern? o_O
-
Hi alle!
Ich hatte vor einigen Tagen die Idee, ein Anti-Verrat System zu machen! D.h.: Wenn Spieler X einmal ein Skin/Gang auswaehlt, kann er diese nicht mehr aendern und wird ab sofort fuer immer mit diesem spielen:
SetPlayerSpawn(playerid) // You don't need to write public at the first, unless you are going to call this callback with a timer.
{
new p_skin = gPlayerSkinForEver[playerid]; // This is BALLAS.
if(p_skin == 102 || p_skin == 103 || p_skin == 104) {
new Float:x, Float:y, Float:z,angle;
SetSpawnInfo(playerid, 1, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0);
} // This is GROOVE.
else if(p_skin == 267 || p_skin == 271 || p_skin == 270 || p_skin == 0 || p_skin == 105 || p_skin == 106 || p_skin == 107) { // You need to change these values.
new Float:x,Float:y,Float:z,angle;
SetSpawnInfo(playerid, 2, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0);
} // This is VAGOS.
else if(p_skin == 108 || p_skin == 109 || p_skin == 110) {
new Float:x, Float:y, Float:z,angle; //
SetSpawnInfo(playerid, 3, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0);
}
SpawnPlayer(playerid);
return 1;
}Das Dumme ist, das es nicht funktioniert!!!
public OnPlayerRequestClass(playerid, classid) {
if(gFirstTimeHasJoined[playerid]) return SetPlayerSpawn(playerid);
PlayerPlaySound(playerid, 1068 , 0.0, 0.0, 0.0);
switch(classid) {
case 0..2: {
SetPlayerTeamFromClass(playerid, classid);
SetPlayerPos(playerid, 1992.1263,-1175.7640,20.1479);
SetPlayerFacingAngle( playerid, 187.0574 );
SetPlayerCameraPos(playerid, 1991.3074,-1179.9628,20.0234);
SetPlayerCameraLookAt(playerid, 1992.1263,-1175.7640,20.1479);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Ballas", 3000, 3);
} case 3..9: {
SetPlayerPos(playerid, 2486.7598,-1647.5186,14.0703);
SetPlayerFacingAngle( playerid, 187.5500 );
SetPlayerCameraPos(playerid, 2486.4346,-1646.0953-5,14.0703);
SetPlayerCameraLookAt(playerid, 2486.7598,-1647.5186,14.0703);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Grove Street", 3000, 3);
} case 10..12: {
SetPlayerPos(playerid, 2571.8352,-1091.2091,66.9639);
SetPlayerFacingAngle(playerid, 48.7203 );
SetPlayerCameraPos(playerid, 2570.1152,-1089.5372,66.8601);
SetPlayerCameraLookAt(playerid, 2571.8352,-1091.2091,66.9639);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Vagos", 3000, 3);
}
}
return 1;
}Der Spieler kann beliebig oft seine Gang, Skin wahlen! Weiss einer, was da falsch ist????
Meine Variablen:
new gFirstTimeHasJoined[MAX_PLAYERS], gPlayerSkinForEver[MAX_PLAYERS];
-
Google ist dein Freund und ausserdem, wie waers, wenn du naechstes Mal im englischen Forum suchst? Waer etwas angemessener!
-
Hi alle zusammen!
Ich bin dabei, dass nur ich als Admin gangsterlevel setzen kann! Hier ist eins!
CMD:og(playerid, params[])
{
new gangstername[MAX_PLAYER_NAME],adminname[MAX_PLAYER_NAME];
new gangsterlevel, id;
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (sscanf(params, "ui", id, gangsterlevel)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /set_glevel [id] [gangsterlevel]");
if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "System: Invalid ID");
GetPlayerName(id, gangstername, sizeof(gangstername));
GetPlayerName(playerid, adminname, sizeof(adminname));
new str[128];
format(str,128,"System: %s [ID %d] has set %s [ID %d] gangsterlevel to %i%s",adminname, playerid, gangstername, id, gangsterlevel,((gangsterlevel >= 100) ? "(GODFATHER)" : "") );
SendClientMessageToAll(COLOR_YELLOW,str);
return 1;
}
else return SendClientMessage(playerid,COLOR_RED," You are not allowed to use this command!");
}Doch nun will ich, dass auch die Respektpunkte gespeichert werden! Ich benutze SII include als registersystem! Koennt ihr mir helfen? Ich will das Respekt level bei OG z.B. von 100 moeglichen Respektpunkten den Respekt +10 erhoeht!
Respekt soll auch mit /stats angezeigt werden, doch auch das ist etwas zu kniffelig fuer mich!