Nabend =D,
Ich weiß Warnings sind nicht so schlimm; aber es werden immer mehr =/ !
Was mache ich falsch? Ich hoffe ihr könnt mir helfen!
Hier sind die Warnings:
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(47) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(48) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(49) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(102) : warning 217: loose indentation
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(103) : warning 217: loose indentation
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(104) : warning 217: loose indentation
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(110) : warning 217: loose indentation
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(138) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(138 -- 146) : warning 217: loose indentation
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(150) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(161) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(159) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(171) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(169) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(181) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(179) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(192) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(190) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(202) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(200) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(212) : warning 202: number of arguments does not match definition
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(210) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(223) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(232) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(232 -- 240) : warning 217: loose indentation
C:\Users\egl1337\Desktop\SAMP Server\gamemodes\lvdm.pwn(242) : warning 204: symbol is assigned a value that is never used: "str"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Warnings.
Zeilen 47-49:
SetPlayerPos(playerid, 1514.3395,-1674.9812,14.0469,267.8254);
SetPlayerCameraPos(playerid, 1514.3395,-1674.9812,14.0469,267.8254);
SetPlayerCameraLookAt(playerid, 1514.3395,-1674.9812,14.0469,267.8254);
102-110:
format(string,sizeof(string),"Du hast ein Fahrzeug gespawnt. ID: %s.",carid);
SendClientMessage(playerid,COLOR_BLAU,string);
}
else
{
SendClientMessage(playerid,COLOR_BLAU,"Du bist kein Admin!");
}
return 1;
138-242:
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_BLAU, "Zivilisten cmd's: /afk");
SendClientMessage(playerid, COLOR_BLAU, "Berufe cmd's: /onduty, /offduty, /berufe;");
SendClientMessage(playerid, COLOR_BLAU, "Admin cmd's: /goto, /heal, /createcar;");
return 1;
}
// GOTO CMD's
if(strcmp(cmdtext, "/goto", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GRUEN, "/goto <Ort> - Verfügbare Orte: lspd, sf_industriegebiet, bsn, 24-7, infernus, lspd garage;");
return 1;
}
}
if(strcmp(cmdtext, "/goto sf_industriegebiet", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_RED, "Du bist jetzt im San-Fierro Industriegebiet!");
SetPlayerPos(playerid, -1249.9304,456.3169,7.1875,269.3900);
return 1;
}
}
if(strcmp(cmdtext, "/goto lspd", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GRUEN, "Du bist jetzt am LSPD!");
SetPlayerPos(playerid, 1545.4314,-1675.2858,13.5603,88.1996);
return 1;
}
}
if(strcmp(cmdtext, "/goto bsn", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GRUEN, "Du stehst nun Direkt vorm' BSN!");
SetPlayerPos(playerid, 1214.3652,-924.1297,42.9262,1.8850);
return 1;
}
}
if(strcmp(cmdtext, "/goto 24-7", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GRUEN, "Willkommen am 24-7!");
SetPlayerPos(playerid, 1350.1874,-1750.8765,13.3645,192.7551);
return 1;
}
}
if(strcmp(cmdtext, "/goto infernus", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GRUEN, "Viel Spaß mit den geilen Karren ;D!");
SetPlayerPos(playerid, -32.6109,-1131.2032,1.0781,332.3978);
return 1;
}
}
if(strcmp(cmdtext, "/goto lspd garage", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GRUEN, "In der LSPD Garage...");
SetPlayerPos(playerid, 1568.3248,-1691.5789,5.8906,254.0575);
return 1;
}
}
// END OF /GOTO's
if(strcmp(cmdtext, "/giveweapon", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GRUEN, "/giveweapon <Waffe> - Waffen: 9mm, deagle, shotgun, mp5, ak47, m4, rifle, sniper");
return 1;
}
}
if(strcmp(cmdtext, "/onduty police", true) == 0)
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
SendClientMessage(playerid, COLOR_GELB, "Willkommen im Dienst!");
SetPlayerSkin(playerid, 266);
GivePlayerWeapon(playerid, 24, 1500);
GivePlayerWeapon(playerid, 31, 500);
return 1;
}
if(strcmp(cmdtext, "/offduty police", true) == 0)
{
new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
MfG