Hi,
Ich bin neu hier, ich scripte jetzt seit 2 Tagen an einen Cops and Robbers game.
Ich habe jetzt zwar ein adminscript, aber wenn ich waffen aus ner datei nem spieler geben will, kommt "argument type mismatch"
Mein code:
new i;
new str1[20];
new str2[20];
new str3[5];
new str4[5];
for(i; i<13; i++)
{
format(str1, sizeof(str1), "Weapon%d", i);
format(str2, sizeof(str2), "Ammo%d", i);
if (strfind(passres, str1) != -1)
{
value = GetFileValue(pass);
format(str3, sizeof(str3), "%d", strval(value));
}
if (strfind(passres, str2) != -1)
{
value = GetFileValue(pass);
format(str4, sizeof(str4), "%d", strval(value));
}
GivePlayerWeapon(playerid, str3, str4); //C:\Dokumente und Einstellungen\Logan\Desktop\GTA SA Server\gamemodes\copandrob.pwn(670) : error 035: argument type mismatch (argument 2)
}
Wäre schön wenn schnell eine Antwort kommt