[Pomoc]Biznis

Započeo | S-RP | K@lib@r .300, Januar 29, 2012, 10:55:07 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: 4 Errora
Dio skripte:

    GivePlayerCash(i, value);
Neke slike/video za lakse dobivanje pomoci(neobavezno):
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : error 012: invalid function call, not a valid address
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : error 001: expected token: ";", but found ")"
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : error 029: invalid expression, assumed zero
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : 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.
Koja carina!
Citat: Fâ,¬nsQ poslato Jun 06, 2012, 15:27:14 POSLE PODNE
mozemi netko reci kada se sper.a dobiva imam 13 i pol godine, a nisam je dobio, moji drugari su to vec dobili, moze pomoc
nov sam pa neznam gdje trebam pitati

Daj par linija iznad i poslije toga..

Evo ti cijeli dio ako sta zatreba
public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "Niko");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
{
    return 0;
}
foreach (Player, i)
{
        new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
{
    new value = money / 100;
    value = value * 10;
    GivePlayerCash(i, value);
    SBizzInfo[bizid][sbTill] -= value;
}
}
return 1;
}
Koja carina!
Citat: Fâ,¬nsQ poslato Jun 06, 2012, 15:27:14 POSLE PODNE
mozemi netko reci kada se sper.a dobiva imam 13 i pol godine, a nisam je dobio, moji drugari su to vec dobili, moze pomoc
nov sam pa neznam gdje trebam pitati

Probaj :

public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "Niko");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
{
    return 0;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
        new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
{
    new value = money / 100;
    value = value * 10;
    GivePlayerCash(i, value);
    SBizzInfo[bizid][sbTill] -= value;
}
}
return 1;
}

Opet isto
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : error 012: invalid function call, not a valid address
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : error 001: expected token: ";", but found ")"
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : error 029: invalid expression, assumed zero
C:\Users\Silvio\Desktop\Security Role Play #1\gamemodes\S.pwn(4009) : 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.

Do cega bi moglo biti ?
Koja carina!
Citat: Fâ,¬nsQ poslato Jun 06, 2012, 15:27:14 POSLE PODNE
mozemi netko reci kada se sper.a dobiva imam 13 i pol godine, a nisam je dobio, moji drugari su to vec dobili, moze pomoc
nov sam pa neznam gdje trebam pitati