Jump to content
  • 0

Problema la crearea unui job! [gm burned]


Nica_Mihai

Question

Cum pot rezolva aceasta problema ??

Ma cam chinui de o ora si nu ii dau de cap.

E:\Gamemode\gamemodes\wa-rpg.pwn(26737) : error 002: only a single statement (or expression) can follow each "case"
E:\Gamemode\gamemodes\wa-rpg.pwn(26737) : warning 215: expression has no effect
E:\Gamemode\gamemodes\wa-rpg.pwn(26738) : warning 209: function "GetPlayerSkill" should return a value
E:\Gamemode\gamemodes\wa-rpg.pwn(26855) : error 002: only a single statement (or expression) can follow each "case"
E:\Gamemode\gamemodes\wa-rpg.pwn(26855) : warning 215: expression has no effect
E:\Gamemode\gamemodes\wa-rpg.pwn(26856) : warning 209: function "GetPlayerSkill2" should return a value
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
[Finished in 73.1s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'E:\\Gamemode\\gamemodes\\wa-rpg.pwn', '-;+']]
[dir: E:\Gamemode\gamemodes]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
function GetPlayerSkill(playerid) {
	bla bla bla(case 1, 2 ,3 ,etc)
    return level;
}

function GetPlayerSkill2(playerid, id) {
	bla bla bla(case 1, 2 ,3 ,etc)
    return level;
}
E:\Gamemode\gamemodes\wa-rpg.pwn(26855) : error 002: only a single statement (or expression) can follow each "case"

  cat despre eroarea asta poate ai uitat sa inchizi undeva statementul(ai uitat o } inainte de return 1;). Sper ca te-am ajutat!

 

Edited by BaFFyJunior
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.