Hey Com,
Ich habe unerklärlicherweise 4 Errors in diesem Command
if(!strcmp(cmd, "/setrent" true))
{
if(PlayerInfo[playerid][pHauskey] != 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,WHITE,"Benutzung: /setrent [Preis]");
return 1;
}
new preis = strval(tmp);
PlayerHaus[PlayerInfo[playerid][pHauskey]] = preis;
return 1;
}
}
Das Problem er zeigt an das der Error in der strcmp Zeile ist aber was das?
Edit Erros
C:\Users\Christian\Desktop\Pixel Roleplay\gamemodes\pixelrpv1.pwn(31952) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Christian\Desktop\Pixel Roleplay\gamemodes\pixelrpv1.pwn(31952) : warning 215: expression has no effect
C:\Users\Christian\Desktop\Pixel Roleplay\gamemodes\pixelrpv1.pwn(31952) : error 001: expected token: ";", but found ")"
C:\Users\Christian\Desktop\Pixel Roleplay\gamemodes\pixelrpv1.pwn(31952) : error 029: invalid expression, assumed zero
C:\Users\Christian\Desktop\Pixel Roleplay\gamemodes\pixelrpv1.pwn(31952) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Mfg