Hallo Breadfish ich habe 4Erros in Suchti Script
Erros:
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\ICQ\592702554\ReceivedFiles\446454161 sprungfeder\Suchti Paket\gamemodes\Suchtis.pwn(46038) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\ICQ\592702554\ReceivedFiles\446454161 sprungfeder\Suchti Paket\gamemodes\Suchtis.pwn(46069) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\ICQ\592702554\ReceivedFiles\446454161 sprungfeder\Suchti Paket\gamemodes\Suchtis.pwn(46079) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\ICQ\592702554\ReceivedFiles\446454161 sprungfeder\Suchti Paket\gamemodes\Suchtis.pwn(49650) : error 017: undefined symbol "isNumeric"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Zeilen::#----#
1. 46038==== public OnVehicleMod(playerid,vehicleid,componentid)
{
if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;}
if(playerid!=-1)
{
new mod=GetModType(componentid);
switch (mod)
{
case 1: { Carlist[playerid][mod1]=componentid; }
case 2: { Carlist[playerid][mod2]=componentid; }
case 3: { Carlist[playerid][mod3]=componentid; }
case 4: { Carlist[playerid][mod4]=componentid; }
case 5: { Carlist[playerid][mod5]=componentid; }
case 6: { Carlist[playerid][mod6]=componentid; }
case 7: { Carlist[playerid][mod7]=componentid; }
case 8: { Carlist[playerid][mod8]=componentid; }
case 9: { Carlist[playerid][mod9]=componentid; }
case 10: { Carlist[playerid][mod10]=componentid; }
case 11: { Carlist[playerid][mod11]=componentid; }
case 12: { Carlist[playerid][mod12]=componentid; }
case 13: { Carlist[playerid][mod13]=componentid; }
case 14: { Carlist[playerid][mod14]=componentid; }
case 15: { Carlist[playerid][mod15]=componentid; }
case 16: { Carlist[playerid][mod16]=componentid; }
case 17: { Carlist[playerid][mod17]=componentid; }
default: { new string[128]; format(string,128,"Unbekannte Komponentenid: %i",componentid); print(string); }
}
}
return 1;
}
2. 46069=== public OnVehiclePaintjob(playerid,vehicleid, paintjobid)
{
if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;}
if(playerid!=-1)
{
Carlist[playerid][Paintjob]=paintjobid;
}
return 1;
}
3. 46079 ==== public OnVehicleRespray(playerid,vehicleid, color1, color2)
{
if(playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;}
if(playerid!=-1)
{
Carlist[playerid][Farbe1]=color1;
Carlist[playerid][Farbe2]=color2;
}
return 1;
}
4. 49650 ==== if (isNumeric(text[pos]))
{
userid = strval(text[pos]);
if (userid >=0 && userid < MAX_PLAYERS)
{
if(!IsPlayerConnected(userid))
userid = INVALID_PLAYER_ID;
else return userid;
}
}
new len = strlen(text[pos]);
new count = 0;
new pname[MAX_PLAYER_NAME];
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, pname, sizeof (pname));
if (strcmp(pname, text[pos], true, len) == 0)
{
if (len == strlen(pname)) return i;
else
{
count++;
userid = i;
}
}
}
}
if (count != 1)
{
if (playerid != INVALID_PLAYER_ID)
{
if (count) SendClientMessage(playerid, COLOR_GRAD1, "Gib mehrere Buchstaben an. Es gibt mehrere Namen die so beginnen!");
else SendClientMessage(playerid, COLOR_GRAD1, "Spieler nicht gefunden.");
}
userid = INVALID_PLAYER_ID;
}
return userid;
}
MfG Freeway